[][src]Struct q1tsim::gates::RX

pub struct RX { /* fields omitted */ }

Rotation around x axis.

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

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

Methods

impl RX[src]

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

Create a new RX gate.

Trait Implementations

impl Gate for RX[src]

impl CQasm for RX[src]

impl Latex for RX[src]

impl OpenQasm for RX[src]

Auto Trait Implementations

impl !Send for RX

impl Unpin for RX

impl !Sync for RX

impl !UnwindSafe for RX

impl !RefUnwindSafe for RX

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