pub struct IdealRecovery<R: RealField> { /* private fields */ }Expand description
The isometry and the recovery of a code.
Implementations§
Source§impl<R: RealField> IdealRecovery<R>
impl<R: RealField> IdealRecovery<R>
Sourcepub fn isometry(&self) -> &QcMorphism<R>
pub fn isometry(&self) -> &QcMorphism<R>
E : 2^k → 2^n, one Kraus operator.
Sourcepub fn encoder(&self) -> &QcMorphism<R>
pub fn encoder(&self) -> &QcMorphism<R>
The encoder as a unitary on the n physical qubits: |x⟩ ⊗ |0…0⟩ ↦ |x̄⟩ for the logical
value x on the first k wires, completed to a unitary by the remaining coset states of the
X-stabilizer group, one per coset and character. This is the box a low-level model in the shape of Lorenz & Tull’s Example 58
starts with, so that its input type is the logical space.
Sourcepub fn recovery(&self) -> &QcMorphism<R>
pub fn recovery(&self) -> &QcMorphism<R>
τ : 2^n → 2^k, one Kraus operator per syndrome.
Sourcepub fn max_correction_weight(&self) -> usize
pub fn max_correction_weight(&self) -> usize
The largest weight among the corrections in the table.
Source§impl<R> IdealRecovery<R>
impl<R> IdealRecovery<R>
Sourcepub fn from_basis<W: NaturalNumber>(
basis: &LogicalBasis<W>,
) -> Result<Self, QuantumError>
pub fn from_basis<W: NaturalNumber>( basis: &LogicalBasis<W>, ) -> Result<Self, QuantumError>
The isometry and the recovery of the code a LogicalBasis describes.
§Errors
QuantumError::DimensionMismatch above IDEAL_RECOVERY_MAX_QUBITS;
QuantumError::CalculationError if a logical basis state comes out zero or a syndrome has
no correction up to weight n; the channel constructors’ errors.
Trait Implementations§
Source§impl<R: Clone + RealField> Clone for IdealRecovery<R>
impl<R: Clone + RealField> Clone for IdealRecovery<R>
Source§fn clone(&self) -> IdealRecovery<R>
fn clone(&self) -> IdealRecovery<R>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more