Struct lay_steane::SteaneLayer[][src]

pub struct SteaneLayer<L: Layer> {
    pub instance: L,
    // some fields omitted
}

Fields

instance: L

Implementations

impl<L: Layer> SteaneLayer<L>[src]

pub fn from_instance(instance: L, n_logical_qubits: u32) -> Self[src]

impl SteaneLayer<GottesmanKnillSimulator<DefaultRng>>[src]

pub fn from_seed_with_gk(n_logical_qubits: u32, seed: u64) -> Self[src]

Trait Implementations

impl<L: Layer + PauliGate + HGate + SGate + CXGate> CXGate for SteaneLayer<L> where
    L: Layer + PauliGate + HGate + SGate + CXGate,
    L::Operation: Operation<L> + PauliOperation<L> + HOperation<L> + SOperation<L> + CXOperation<L>,
    L::Qubit: NumCast,
    L::Slot: NumCast
[src]

impl<L: Debug + Layer> Debug for SteaneLayer<L> where
    L::Buffer: Debug
[src]

impl<L: Layer + PauliGate + HGate + SGate + CXGate> HGate for SteaneLayer<L> where
    L: Layer + PauliGate + HGate + SGate + CXGate,
    L::Operation: Operation<L> + PauliOperation<L> + HOperation<L> + SOperation<L> + CXOperation<L>,
    L::Qubit: NumCast,
    L::Slot: NumCast
[src]

impl<L: Layer + PauliGate + HGate + SGate + CXGate> Layer for SteaneLayer<L> where
    L: Layer + PauliGate + HGate + SGate + CXGate,
    L::Operation: Operation<L> + PauliOperation<L> + HOperation<L> + SOperation<L> + CXOperation<L>,
    L::Qubit: NumCast,
    L::Slot: NumCast
[src]

type Operation = OpArgs<Self>

type Qubit = u32

type Slot = u32

type Buffer = SteaneBuffer

type Requested = L::Requested

type Response = L::Response

impl<L: Layer + PauliGate + HGate + SGate + CXGate> PauliGate for SteaneLayer<L> where
    L: Layer + PauliGate + HGate + SGate + CXGate,
    L::Operation: Operation<L> + PauliOperation<L> + HOperation<L> + SOperation<L> + CXOperation<L>,
    L::Qubit: NumCast,
    L::Slot: NumCast
[src]

impl<L: Layer + PauliGate + HGate + SGate + CXGate> SGate for SteaneLayer<L> where
    L: Layer + PauliGate + HGate + SGate + CXGate,
    L::Operation: Operation<L> + PauliOperation<L> + HOperation<L> + SOperation<L> + CXOperation<L>,
    L::Qubit: NumCast,
    L::Slot: NumCast
[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for SteaneLayer<L> where
    L: RefUnwindSafe,
    <L as Layer>::Buffer: RefUnwindSafe
[src]

impl<L> Send for SteaneLayer<L> where
    L: Send,
    <L as Layer>::Buffer: Send
[src]

impl<L> Sync for SteaneLayer<L> where
    L: Sync,
    <L as Layer>::Buffer: Sync
[src]

impl<L> Unpin for SteaneLayer<L> where
    L: Unpin,
    <L as Layer>::Buffer: Unpin
[src]

impl<L> UnwindSafe for SteaneLayer<L> where
    L: UnwindSafe,
    <L as Layer>::Buffer: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.