[][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]

Apply a gate. Read more

fn check_nr_bits(&self, n: usize) -> Result<()>[src]

Check the number of bits Read more

fn is_stabilizer(&self) -> bool[src]

Whether this gate is a stabilizer gate Read more

fn conjugate(&self, _ops: &mut [PauliOp]) -> Result<bool>[src]

Conjugate Pauli operators Read more

impl CQasm for Tdg[src]

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

cQasm representation of conditional gate. Read more

impl Latex for Tdg[src]

impl OpenQasm for Tdg[src]

fn conditional_open_qasm(
    &self,
    condition: &str,
    bit_names: &[String],
    bits: &[usize]
) -> Result<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, 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]