[][src]Struct q1tsim::gates::U1

pub struct U1 { /* fields omitted */ }

Phase gate.

The U1(λ) gate shifts the phase of the |1⟩ component of a qubit over an angle λ. The associated matrix is

┌              ┐
│ 1          0 │
│              │
│ 0    exp(iλ) │
└              ┘

Methods

impl U1[src]

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

Create a new U1 gate.

pub fn cost() -> f64[src]

Trait Implementations

impl Gate for U1[src]

impl CQasm for U1[src]

impl Latex for U1[src]

impl OpenQasm for U1[src]

Auto Trait Implementations

impl !Send for U1

impl Unpin for U1

impl !Sync for U1

impl !UnwindSafe for U1

impl !RefUnwindSafe for U1

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>,