[−][src]Struct q1tsim::gates::T
The T
gate
The T
gate rotates the state over π/4 radians around the z
axis of
the Bloch sphere. It is the square root of the S
gate.
Methods
impl T
[src]
Trait Implementations
impl Gate for T
[src]
fn cost(&self) -> f64
[src]
fn description(&self) -> &str
[src]
fn nr_affected_bits(&self) -> usize
[src]
fn matrix(&self) -> CMatrix
[src]
fn apply_slice(&self, state: CVecSliceMut)
[src]
fn apply_mat_slice(&self, state: CMatSliceMut)
[src]
fn apply(&self, state: &mut CVector)
[src]
fn apply_mat(&self, state: &mut CMatrix)
[src]
fn check_nr_bits(&self, n: usize) -> Result<()>
[src]
fn is_stabilizer(&self) -> bool
[src]
fn conjugate(&self, _ops: &mut [PauliOp]) -> Result<bool>
[src]
impl CQasm for T
[src]
fn c_qasm(&self, bit_names: &[String], bits: &[usize]) -> Result<String>
[src]
fn conditional_c_qasm(
&self,
condition: &str,
bit_names: &[String],
bits: &[usize]
) -> Result<String>
[src]
&self,
condition: &str,
bit_names: &[String],
bits: &[usize]
) -> Result<String>
impl Latex for T
[src]
impl OpenQasm for T
[src]
Auto Trait Implementations
Blanket Implementations
impl<G> CircuitGate for G where
G: Gate + CQasm + Latex + OpenQasm,
[src]
G: Gate + CQasm + Latex + OpenQasm,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,