Struct qdk_sim::Tableau [−][src]
pub struct Tableau { /* fields omitted */ }
Expand description
Represents a stabilizer group with logical dimension 1; that is, a single stabilizer state expressed in terms of the generators of its stabilizer group, and those generators of the Pauli group that anticommute with each stabilizer generator (colloquially, the destabilizers of the represented state).
Implementations
Asserts whether a hypothetical single-qubit $Z$-basis measurement would agree with an expected result.
If the assertion would pass, Ok(())
is returned, otherwise an Err
describing the assertion failure is returned.
Applies a Hadamard operation in-place to the given qubit.
Applies a phase operation ($S$) in-place to the given qubit.
Applies a controlled-NOT operation in-place, given control and target qubits.
Applies a Pauli $X$ operation in-place to the given qubit.
Applies an adjoint phase operation ($S^{\dagger}$) in-place to the given qubit.
Applies a Pauli $Y$ operation in-place to the given qubit.
Applies a Pauli $Z$ operation in-place to the given qubit.
Applies a SWAP operation in-place between two qubits.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Tableau
impl UnwindSafe for Tableau
Blanket Implementations
Mutably borrows from an owned value. Read more