pub struct StabilizerCode { /* private fields */ }Implementations§
Source§impl StabilizerCode
impl StabilizerCode
pub fn from_stabilizers(n: usize, stabilizers: Vec<Pauli>) -> Result<Self>
pub fn n(&self) -> usize
pub fn stabilizers(&self) -> &[Pauli]
pub fn stabilizer_rows(&self) -> Vec<Vec<u8>>
pub fn stabilizer_rank(&self) -> usize
pub fn num_logical_qubits(&self) -> usize
Sourcepub fn normalizer_basis(&self) -> Result<Vec<Pauli>>
pub fn normalizer_basis(&self) -> Result<Vec<Pauli>>
Returns a basis for the full stabilizer normalizer, including stabilizer generators.
pub fn logical_basis(&self) -> Result<LogicalBasis>
pub fn canonical_logical_basis(&self) -> Result<LogicalBasis>
Trait Implementations§
Source§impl Clone for StabilizerCode
impl Clone for StabilizerCode
Source§fn clone(&self) -> StabilizerCode
fn clone(&self) -> StabilizerCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StabilizerCode
impl Debug for StabilizerCode
impl Eq for StabilizerCode
Source§impl PartialEq for StabilizerCode
impl PartialEq for StabilizerCode
impl StructuralPartialEq for StabilizerCode
Auto Trait Implementations§
impl Freeze for StabilizerCode
impl RefUnwindSafe for StabilizerCode
impl Send for StabilizerCode
impl Sync for StabilizerCode
impl Unpin for StabilizerCode
impl UnsafeUnpin for StabilizerCode
impl UnwindSafe for StabilizerCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more