[−][src]Struct q1tsim::gates::Kron
Gate describing the Kronecker product of two other gates operating on different qubits.
Methods
impl<G0, G1> Kron<G0, G1> where
G0: Gate,
G1: Gate,
[src]
G0: Gate,
G1: Gate,
Trait Implementations
impl<G0, G1> Gate for Kron<G0, G1> where
G0: Gate,
G1: Gate,
[src]
G0: Gate,
G1: Gate,
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(&self, state: &mut CVector)
[src]
Apply a gate. Read more
fn apply_mat(&self, state: &mut CMatrix)
[src]
Apply a gate. Read more
fn apply_mat_slice(&self, state: CMatSliceMut)
[src]
Apply a gate. Read more
fn check_nr_bits(&self, bits: &[usize]) -> Result<()>
[src]
Check the number of bits Read more
impl<G0, G1> CQasm for Kron<G0, G1> where
G0: CQasm,
G1: CQasm,
[src]
G0: CQasm,
G1: CQasm,
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<G0, G1> Latex for Kron<G0, G1> where
G0: Latex,
G1: Latex,
[src]
G0: Latex,
G1: Latex,
impl<G0, G1> OpenQasm for Kron<G0, G1> where
G0: OpenQasm,
G1: OpenQasm,
[src]
G0: OpenQasm,
G1: OpenQasm,
Auto Trait Implementations
impl<G0, G1> Send for Kron<G0, G1> where
G0: Send,
G1: Send,
G0: Send,
G1: Send,
impl<G0, G1> Sync for Kron<G0, G1> where
G0: Sync,
G1: Sync,
G0: Sync,
G1: Sync,
Blanket Implementations
impl<G> CircuitGate for G where
G: Gate + CQasm + Latex + OpenQasm,
[src]
G: Gate + CQasm + Latex + OpenQasm,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,