pub struct SolverErrorPatternLogger {
pub file: BufWriter<File>,
}Fields§
§file: BufWriter<File>Implementations§
Source§impl SolverErrorPatternLogger
impl SolverErrorPatternLogger
pub fn new( initializer: &SolverInitializer, positions: &Vec<VisualizePosition>, config: Value, ) -> Self
Trait Implementations§
Source§impl PrimalDualSolver for SolverErrorPatternLogger
impl PrimalDualSolver for SolverErrorPatternLogger
fn clear(&mut self)
fn solve_visualizer( &mut self, syndrome_pattern: &SyndromePattern, _visualizer: Option<&mut Visualizer>, )
fn perfect_matching_visualizer( &mut self, _visualizer: Option<&mut Visualizer>, ) -> PerfectMatching
fn subgraph_visualizer( &mut self, _visualizer: Option<&mut Visualizer>, ) -> Vec<EdgeIndex> ⓘ
fn sum_dual_variables(&self) -> Weight
fn generate_profiler_report(&self) -> Value
fn reset_profiler(&mut self)
fn solve(&mut self, syndrome_pattern: &SyndromePattern)
fn perfect_matching(&mut self) -> PerfectMatching
fn subgraph(&mut self) -> Vec<EdgeIndex> ⓘ
fn stim_integration_predict_bit_packed_data( &mut self, in_file: String, out_file: String, edge_masks: &[usize], num_shots: usize, num_dets: usize, num_obs: usize, )
Auto Trait Implementations§
impl Freeze for SolverErrorPatternLogger
impl RefUnwindSafe for SolverErrorPatternLogger
impl Send for SolverErrorPatternLogger
impl Sync for SolverErrorPatternLogger
impl Unpin for SolverErrorPatternLogger
impl UnwindSafe for SolverErrorPatternLogger
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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 more