[][src]Struct q1tsim::gates::RY

pub struct RY { /* fields omitted */ }

Rotation around y axis.

The RY(θ) gate rotates the qubit around the y axis of the Bloch sphere over an angle θ. The associated matrix is

┌                    ┐
│ cos(θ/2) -sin(θ/2) │
│                    │
│ sin(θ/2)  cos(θ/2) │
└                    ┘

Methods

impl RY[src]

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

Create a new RY gate.

Trait Implementations

impl Gate for RY[src]

impl CQasm for RY[src]

impl Latex for RY[src]

impl OpenQasm for RY[src]

Auto Trait Implementations

impl !Send for RY

impl !Sync for RY

impl Unpin for RY

impl !UnwindSafe for RY

impl !RefUnwindSafe for RY

Blanket Implementations

impl<G> CircuitGate for G where
    G: Gate + CQasm + Latex + OpenQasm
[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.

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

impl<T> BorrowMut<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>,