pub struct SolverDualParallel {
pub dual_module: DualModuleParallel<DualModuleSerial>,
pub primal_module: PrimalModuleSerialPtr,
pub interface_ptr: DualModuleInterfacePtr,
pub subgraph_builder: SubGraphBuilder,
}Fields§
§dual_module: DualModuleParallel<DualModuleSerial>§primal_module: PrimalModuleSerialPtr§interface_ptr: DualModuleInterfacePtr§subgraph_builder: SubGraphBuilderImplementations§
Source§impl SolverDualParallel
impl SolverDualParallel
pub fn new( initializer: &SolverInitializer, partition_info: &PartitionInfo, primal_dual_config: Value, ) -> Self
Trait Implementations§
Source§impl PrimalDualSolver for SolverDualParallel
impl PrimalDualSolver for SolverDualParallel
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 SolverDualParallel
impl !RefUnwindSafe for SolverDualParallel
impl Send for SolverDualParallel
impl Sync for SolverDualParallel
impl Unpin for SolverDualParallel
impl !UnwindSafe for SolverDualParallel
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