pub enum ExampleCodeType {
CodeCapacityRepetitionCode,
PhenomenologicalRepetitionCode,
CircuitLevelRepetitionCode,
CodeCapacityPlanarCode,
PhenomenologicalPlanarCode,
PhenomenologicalPlanarCodeParallel,
CircuitLevelPlanarCode,
CircuitLevelPlanarCodeParallel,
ErrorPatternReader,
CodeCapacityRotatedCode,
PhenomenologicalRotatedCode,
QECPlaygroundCode,
}Expand description
note that these code type is only for example, to test and demonstrate the correctness of the algorithm, but not for real QEC simulation; for real simulation, please refer to https://github.com/yuewuo/QEC-Playground
Variants§
CodeCapacityRepetitionCode
quantum repetition code with perfect stabilizer measurement
PhenomenologicalRepetitionCode
quantum repetition code with phenomenological noise model
CircuitLevelRepetitionCode
quantum repetition code with circuit-level noise model
CodeCapacityPlanarCode
planar surface code with perfect stabilizer measurement
PhenomenologicalPlanarCode
planar surface code with phenomenological noise model
PhenomenologicalPlanarCodeParallel
parallel version
CircuitLevelPlanarCode
planar surface code with circuit-level noise model
CircuitLevelPlanarCodeParallel
parallel version
ErrorPatternReader
read from error pattern file, generated using option --primal-dual-type error-pattern-logger
CodeCapacityRotatedCode
rotated surface code with perfect stabilizer measurement
PhenomenologicalRotatedCode
rotated surface code with phenomenological noise model
QECPlaygroundCode
code constructed by QEC-Playground, pass configurations using --code-config
Implementations§
Trait Implementations§
Source§impl Clone for ExampleCodeType
impl Clone for ExampleCodeType
Source§fn clone(&self) -> ExampleCodeType
fn clone(&self) -> ExampleCodeType
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExampleCodeType
impl Debug for ExampleCodeType
Source§impl Ord for ExampleCodeType
impl Ord for ExampleCodeType
Source§impl PartialEq for ExampleCodeType
impl PartialEq for ExampleCodeType
Source§impl PartialOrd for ExampleCodeType
impl PartialOrd for ExampleCodeType
Source§impl Serialize for ExampleCodeType
impl Serialize for ExampleCodeType
Source§impl ValueEnum for ExampleCodeType
impl ValueEnum for ExampleCodeType
impl Copy for ExampleCodeType
impl Eq for ExampleCodeType
impl StructuralPartialEq for ExampleCodeType
Auto Trait Implementations§
impl Freeze for ExampleCodeType
impl RefUnwindSafe for ExampleCodeType
impl Send for ExampleCodeType
impl Sync for ExampleCodeType
impl Unpin for ExampleCodeType
impl UnwindSafe for ExampleCodeType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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