pub struct BenchmarkParameters {Show 20 fields
pub d: VertexNum,
pub p: f64,
pub pe: f64,
pub noisy_measurements: VertexNum,
pub max_half_weight: Weight,
pub code_type: ExampleCodeType,
pub code_config: String,
pub enable_visualizer: bool,
pub visualizer_filename: String,
pub print_syndrome_pattern: bool,
pub verifier: Verifier,
pub total_rounds: usize,
pub primal_dual_type: PrimalDualType,
pub primal_dual_config: String,
pub partition_strategy: PartitionStrategy,
pub partition_config: String,
pub pb_message: String,
pub use_deterministic_seed: bool,
pub benchmark_profiler_output: Option<String>,
pub starting_iteration: usize,
}Fields§
§d: VertexNumcode distance
p: f64physical error rate: the probability of each edge to
pe: f64rounds of noisy measurement, valid only when multiple rounds
noisy_measurements: VertexNumrounds of noisy measurement, valid only when multiple rounds
max_half_weight: Weightmaximum half weight of edges
code_type: ExampleCodeTypeexample code type
code_config: Stringthe configuration of the code builder
enable_visualizer: boollogging to the default visualizer file at visualize/data/visualizer.json
visualizer_filename: Stringvisualizer file at visualize/data/<visualizer_filename.json>
print_syndrome_pattern: boolprint syndrome patterns
verifier: Verifierthe method to verify the correctness of the decoding result
total_rounds: usizethe number of iterations to run
primal_dual_type: PrimalDualTypeselect the combination of primal and dual module
primal_dual_config: Stringthe configuration of primal and dual module
partition_strategy: PartitionStrategypartition strategy
partition_config: Stringthe configuration of the partition strategy
pb_message: Stringmessage on the progress bar
use_deterministic_seed: booluse deterministic seed for debugging purpose
benchmark_profiler_output: Option<String>the benchmark profile output file path
starting_iteration: usizeskip some iterations, useful when debugging
Trait Implementations§
Source§impl Args for BenchmarkParameters
impl Args for BenchmarkParameters
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for BenchmarkParameters
impl Clone for BenchmarkParameters
Source§fn clone(&self) -> BenchmarkParameters
fn clone(&self) -> BenchmarkParameters
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for BenchmarkParameters
impl CommandFactory for BenchmarkParameters
Source§impl Debug for BenchmarkParameters
impl Debug for BenchmarkParameters
Source§impl From<BenchmarkParameters> for RunnableBenchmarkParameters
impl From<BenchmarkParameters> for RunnableBenchmarkParameters
Source§fn from(parameters: BenchmarkParameters) -> Self
fn from(parameters: BenchmarkParameters) -> Self
Source§impl FromArgMatches for BenchmarkParameters
impl FromArgMatches for BenchmarkParameters
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for BenchmarkParameters
impl Parser for BenchmarkParameters
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for BenchmarkParameters
impl RefUnwindSafe for BenchmarkParameters
impl Send for BenchmarkParameters
impl Sync for BenchmarkParameters
impl Unpin for BenchmarkParameters
impl UnwindSafe for BenchmarkParameters
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)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>
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>
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