[][src]Struct q1tsim::gates::RZ

pub struct RZ { /* fields omitted */ }

Rotation around z axis.

The RZ(λ) gate rotates the qubit around the z axis of the Bloch sphere over an angle λ. It is equivalent to the U1 gate, up to an overall phase. The associated matrix is

┌                     ┐
│ exp(-iλ/2)        0 │
│                     │
│          0 exp(iλ/2)│
└                     ┘

Methods

impl RZ[src]

pub fn new<T>(lambda: T) -> Self where
    Parameter: From<T>, 
[src]

Create a new RZ gate with fixed angle lambda

Trait Implementations

impl Gate for RZ[src]

impl CQasm for RZ[src]

impl Latex for RZ[src]

impl OpenQasm for RZ[src]

Auto Trait Implementations

impl !Send for RZ

impl Unpin for RZ

impl !Sync for RZ

impl !UnwindSafe for RZ

impl !RefUnwindSafe for RZ

Blanket Implementations

impl<G> CircuitGate for G where
    G: Gate + CQasm + Latex + OpenQasm
[src]

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

impl<T> From<T> for 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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,