pub struct ProgramSlices {
pub regions: Vec<ProgramRegion>,
pub per_node: FxHashMap<NodeRef, NodeSlices>,
pub breaks: Vec<ProgramRegionBreak>,
pub skipped_cross_tape: usize,
}Expand description
The whole program’s detector-slice data, keyed by node.
Fields§
§regions: Vec<ProgramRegion>Region identity and detector coordinates, stored once rather than copied into every moment where the region is alive.
per_node: FxHashMap<NodeRef, NodeSlices>Every quantum node (top-level and region-body) with its per-moment regions.
breaks: Vec<ProgramRegionBreak>Gauge breaks, located back to their node timeline.
skipped_cross_tape: usizeHow many detector or observable regions were dropped because a contribution reached an instance outside its own tape.
Trait Implementations§
Source§impl Clone for ProgramSlices
impl Clone for ProgramSlices
Source§fn clone(&self) -> ProgramSlices
fn clone(&self) -> ProgramSlices
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 ProgramSlices
impl Debug for ProgramSlices
Source§impl Default for ProgramSlices
impl Default for ProgramSlices
Source§fn default() -> ProgramSlices
fn default() -> ProgramSlices
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgramSlices
impl RefUnwindSafe for ProgramSlices
impl Send for ProgramSlices
impl Sync for ProgramSlices
impl Unpin for ProgramSlices
impl UnsafeUnpin for ProgramSlices
impl UnwindSafe for ProgramSlices
Blanket Implementations§
§impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
fn assign_index(&mut self, index: usize, to: bool)
fn negate_index(&mut self, index: usize)
fn clear_bits(&mut self)
fn assign_random(
&mut self,
bit_count: usize,
random_number_generator: &mut impl RngExt,
)where
BorrowedSelf: BitLength,
§impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
fn assign(&mut self, other: &Other)
fn bitxor_assign(&mut self, other: &Other)
fn bitand_assign(&mut self, other: &Other)
fn bitor_assign(&mut self, other: &Other)
§impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
§impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
fn index(&self, index: usize) -> bool
fn weight(&self) -> usize
fn parity(&self) -> bool
fn is_zero(&self) -> bool
fn is_unit(&self, index: usize) -> bool
fn support<'a>(&'a self) -> impl SortedIteratorwhere
BorrowedSelf: 'a,
fn max_support(&self) -> Option<usize>
fn min_support(&self) -> Option<usize>
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