pub struct DemSamplingResult { /* private fields */ }Expand description
Cross-crate result of one negotiated DEM sampling pass.
Implementations§
Source§impl DemSamplingResult
impl DemSamplingResult
pub fn shots(&self) -> usize
pub fn syndrome(&self) -> DetectorBatchView<'_>
pub fn syndrome_batch(&self) -> &DetectorBatch
pub fn observables(&self) -> &DemObservableBatch
pub fn detail_detector_ids(&self) -> &[i64]
pub fn detail_detector_masks(&self) -> &[Mask]
pub fn detector_detail_mask(&self, detector_id: i64) -> Option<&Mask>
pub fn all_mask(&self) -> &Mask
pub fn attribution(&self) -> Option<&DemAttributionTrace>
pub fn into_dem_batch(self) -> NpResult<DemBatch>
Trait Implementations§
Source§impl Clone for DemSamplingResult
impl Clone for DemSamplingResult
Source§impl Debug for DemSamplingResult
impl Debug for DemSamplingResult
Source§impl PartialEq for DemSamplingResult
impl PartialEq for DemSamplingResult
impl StructuralPartialEq for DemSamplingResult
Auto Trait Implementations§
impl Freeze for DemSamplingResult
impl RefUnwindSafe for DemSamplingResult
impl Send for DemSamplingResult
impl Sync for DemSamplingResult
impl Unpin for DemSamplingResult
impl UnsafeUnpin for DemSamplingResult
impl UnwindSafe for DemSamplingResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more