[][src]Struct q1tsim::gates::Tdg

pub struct Tdg {}

Conjugate of T gate

The T gate rotates the state over -π/4 radians around the z axis of the Bloch sphere. It is the conjugate of the T gate.

Methods

impl Tdg[src]

pub fn new() -> Self[src]

Create a new T gate.

Trait Implementations

impl Gate for Tdg[src]

fn apply(&self, state: &mut CVector)[src]

Apply a gate. Read more

fn apply_mat(&self, state: &mut CMatrix)[src]

impl CQasm for Tdg[src]

fn conditional_c_qasm(
    &self,
    condition: &str,
    bit_names: &[String],
    bits: &[usize]
) -> Result<String, String>
[src]

cQasm representation of conditional gate. Read more

impl Latex for Tdg[src]

fn latex_checked(&self, bits: &[usize], state: &mut LatexExportState)[src]

Checked add to the export state. Read more

impl OpenQasm for Tdg[src]

fn conditional_open_qasm(
    &self,
    condition: &str,
    bit_names: &[String],
    bits: &[usize]
) -> Result<String, String>
[src]

OpenQasm representation of conditional gate. Read more

Auto Trait Implementations

impl Send for Tdg

impl Sync for Tdg

Blanket Implementations

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

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.