pub struct QecCompiledRows { /* private fields */ }Expand description
Compiled QEC record rows ready for sampler lowering.
Implementations§
Source§impl QecCompiledRows
impl QecCompiledRows
Sourcepub fn num_qubits(&self) -> usize
pub fn num_qubits(&self) -> usize
Number of qubits in the source program.
Sourcepub fn measurement_rows(&self) -> &[QecMeasurementRow]
pub fn measurement_rows(&self) -> &[QecMeasurementRow]
Measurement rows in record order.
Sourcepub fn detector_rows(&self) -> &[Vec<usize>]
pub fn detector_rows(&self) -> &[Vec<usize>]
Detector parity rows over measurement records.
Sourcepub fn observable_rows(&self) -> &[Vec<usize>]
pub fn observable_rows(&self) -> &[Vec<usize>]
Observable parity rows over measurement records.
Sourcepub fn postselection_rows(&self) -> &[Vec<usize>]
pub fn postselection_rows(&self) -> &[Vec<usize>]
Postselection parity rows.
Sourcepub fn postselection_expected(&self) -> &[bool]
pub fn postselection_expected(&self) -> &[bool]
Expected parity for each postselection row.
Sourcepub fn postselection_predicates(
&self,
) -> impl ExactSizeIterator<Item = (&[usize], bool)> + '_
pub fn postselection_predicates( &self, ) -> impl ExactSizeIterator<Item = (&[usize], bool)> + '_
Postselection parity rows paired with expected values.
Sourcepub fn num_measurements(&self) -> usize
pub fn num_measurements(&self) -> usize
Number of measurement records.
Sourcepub fn num_detectors(&self) -> usize
pub fn num_detectors(&self) -> usize
Number of detector rows.
Sourcepub fn num_observables(&self) -> usize
pub fn num_observables(&self) -> usize
Number of observable rows.
Sourcepub fn num_postselections(&self) -> usize
pub fn num_postselections(&self) -> usize
Number of postselection predicates.
Sourcepub fn packed_row_words(&self) -> usize
pub fn packed_row_words(&self) -> usize
Packed words per X or Z mask.
Sourcepub fn measurement_mask_bytes(&self) -> usize
pub fn measurement_mask_bytes(&self) -> usize
Packed measurement row storage in bytes.
Sourcepub fn detector_parities(
&self,
measurements: &PackedShots,
) -> Result<PackedShots>
pub fn detector_parities( &self, measurements: &PackedShots, ) -> Result<PackedShots>
Compute detector records from packed measurement records.
Sourcepub fn observable_parities(
&self,
measurements: &PackedShots,
) -> Result<PackedShots>
pub fn observable_parities( &self, measurements: &PackedShots, ) -> Result<PackedShots>
Compute logical observable records from packed measurement records.
Sourcepub fn postselection_parities(
&self,
measurements: &PackedShots,
) -> Result<PackedShots>
pub fn postselection_parities( &self, measurements: &PackedShots, ) -> Result<PackedShots>
Compute postselection predicate parities from packed measurement records.
Trait Implementations§
Source§impl Clone for QecCompiledRows
impl Clone for QecCompiledRows
Source§fn clone(&self) -> QecCompiledRows
fn clone(&self) -> QecCompiledRows
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QecCompiledRows
impl Debug for QecCompiledRows
Source§impl PartialEq for QecCompiledRows
impl PartialEq for QecCompiledRows
Source§fn eq(&self, other: &QecCompiledRows) -> bool
fn eq(&self, other: &QecCompiledRows) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for QecCompiledRows
impl StructuralPartialEq for QecCompiledRows
Auto Trait Implementations§
impl Freeze for QecCompiledRows
impl RefUnwindSafe for QecCompiledRows
impl Send for QecCompiledRows
impl Sync for QecCompiledRows
impl Unpin for QecCompiledRows
impl UnsafeUnpin for QecCompiledRows
impl UnwindSafe for QecCompiledRows
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