pub struct PhenomenologicalRotatedCodeTimePartition {
pub d: VertexNum,
pub noisy_measurements: VertexNum,
pub partition_num: usize,
pub enable_tree_fusion: bool,
pub maximum_tree_leaf_size: usize,
}Expand description
evenly partition along the time axis
Fields§
§d: VertexNumcode distance
noisy_measurements: VertexNumrounds of noisy measurement, valid only when multiple rounds
partition_num: usizethe number of partition
enable_tree_fusion: boolenable tree fusion (to minimize latency but incur log(partition_num) more memory copy)
maximum_tree_leaf_size: usizemaximum amount of tree leaf; if the total partition is greater than this, it will be cut into multiple regions and each region is a separate tree; those trees are then fused sequentially
Implementations§
Trait Implementations§
Source§impl Args for PhenomenologicalRotatedCodeTimePartition
impl Args for PhenomenologicalRotatedCodeTimePartition
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for PhenomenologicalRotatedCodeTimePartition
impl Clone for PhenomenologicalRotatedCodeTimePartition
Source§fn clone(&self) -> PhenomenologicalRotatedCodeTimePartition
fn clone(&self) -> PhenomenologicalRotatedCodeTimePartition
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ExamplePartition for PhenomenologicalRotatedCodeTimePartition
impl ExamplePartition for PhenomenologicalRotatedCodeTimePartition
Source§fn build_partition(&mut self, code: &dyn ExampleCode) -> PartitionConfig
fn build_partition(&mut self, code: &dyn ExampleCode) -> PartitionConfig
build the partition, using the indices after reordered vertices
Source§fn build_apply(&mut self, code: &mut dyn ExampleCode) -> PartitionConfig
fn build_apply(&mut self, code: &mut dyn ExampleCode) -> PartitionConfig
customize partition, note that this process may re-order the vertices in
codefn re_index_defect_vertices( &mut self, code: &dyn ExampleCode, defect_vertices: &[VertexIndex], ) -> Vec<VertexIndex> ⓘ
Source§fn build_reordered_vertices(
&mut self,
_code: &dyn ExampleCode,
) -> Option<Vec<VertexIndex>>
fn build_reordered_vertices( &mut self, _code: &dyn ExampleCode, ) -> Option<Vec<VertexIndex>>
build reorder vertices
Source§impl FromArgMatches for PhenomenologicalRotatedCodeTimePartition
impl FromArgMatches for PhenomenologicalRotatedCodeTimePartition
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Parser for PhenomenologicalRotatedCodeTimePartition
impl Parser for PhenomenologicalRotatedCodeTimePartition
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on 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 PhenomenologicalRotatedCodeTimePartition
impl RefUnwindSafe for PhenomenologicalRotatedCodeTimePartition
impl Send for PhenomenologicalRotatedCodeTimePartition
impl Sync for PhenomenologicalRotatedCodeTimePartition
impl Unpin for PhenomenologicalRotatedCodeTimePartition
impl UnwindSafe for PhenomenologicalRotatedCodeTimePartition
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
§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)
🔬This is a nightly-only experimental API. (
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>
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