pub struct CompiledStimCircuit {
pub num_qubits: usize,
pub num_measurements: usize,
pub num_detectors: usize,
pub num_observables: usize,
/* private fields */
}Expand description
Compiled circuit for efficient sampling
Fields§
§num_qubits: usizeNumber of qubits
num_measurements: usizeNumber of measurements
num_detectors: usizeNumber of detectors
num_observables: usizeNumber of observables
Implementations§
Source§impl CompiledStimCircuit
impl CompiledStimCircuit
Sourcepub fn compile(circuit: &StimCircuit) -> Result<Self>
pub fn compile(circuit: &StimCircuit) -> Result<Self>
Compile a Stim circuit for sampling
Sourcepub fn compile_with_dem(circuit: &StimCircuit) -> Result<Self>
pub fn compile_with_dem(circuit: &StimCircuit) -> Result<Self>
Compile with DEM for faster error-only sampling
Sourcepub fn circuit(&self) -> &StimCircuit
pub fn circuit(&self) -> &StimCircuit
Get the underlying circuit
Trait Implementations§
Source§impl Clone for CompiledStimCircuit
impl Clone for CompiledStimCircuit
Source§fn clone(&self) -> CompiledStimCircuit
fn clone(&self) -> CompiledStimCircuit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompiledStimCircuit
impl RefUnwindSafe for CompiledStimCircuit
impl Send for CompiledStimCircuit
impl Sync for CompiledStimCircuit
impl Unpin for CompiledStimCircuit
impl UnwindSafe for CompiledStimCircuit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.