[−][src]Enum dqcsim::common::gates::UnitaryGateType
An abstract gate type.
The variants in this type carry no additional parameters or information
about the target qubits, with the exception of the UnitaryGateType::U
variant
that encodes an abstract Unitary gate with the number of qubits involved
specified.
Variants
Identity.
Pauli-X.
Pauli-Y.
Pauli-Z.
Hadamard.
Phase.
S† (conjugate transpose of S).
T.
T† (conjugate transpose of T).
90 degree rotation around X-axis.
minus 90 degree rotation around X-axis.
180 degree rotation around X-axis.
90 degree rotation around Y-axis.
minus 90 degree rotation around Y-axis.
180 degree rotation around Y-axis.
90 degree rotation around Y-axis.
minus 90 degree rotation around Z-axis.
180 degree rotation around Z-axis.
Arbitrary rotation around X-axis.
Arbitrary rotation around Y-axis.
Arbitrary rotation around Z-axis.
Arbitrary rotation around Z-axis, global phase chosen such that it works as a submatrix for controlled phase operations.
Same as Phase, but with θ = π/2^k.
Arbitrary rotation around X-, Y- and Z-axis.
Swap.
Square root of Swap.
U(usize)
Abstract unitary gate with number of target qubits specified.
Implementations
impl UnitaryGateType
[src]
pub fn into_gate_converter(
self,
num_controls: Option<usize>,
epsilon: f64,
ignore_global_phase: bool
) -> Box<dyn Converter<Input = Gate, Output = (Vec<QubitRef>, ArbData)>>
[src]
self,
num_controls: Option<usize>,
epsilon: f64,
ignore_global_phase: bool
) -> Box<dyn Converter<Input = Gate, Output = (Vec<QubitRef>, ArbData)>>
Trait Implementations
impl Clone for UnitaryGateType
[src]
fn clone(&self) -> UnitaryGateType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for UnitaryGateType
[src]
impl Debug for UnitaryGateType
[src]
impl Eq for UnitaryGateType
[src]
impl<'_, '_> From<BoundUnitaryGate<'_, '_>> for UnitaryGateType
[src]
fn from(bound_gate: BoundUnitaryGate<'_, '_>) -> UnitaryGateType
[src]
impl<'_> From<UnboundUnitaryGate<'_>> for UnitaryGateType
[src]
fn from(unbound_gate: UnboundUnitaryGate<'_>) -> UnitaryGateType
[src]
impl From<UnitaryGateType> for Box<dyn MatrixConverterArb>
[src]
fn from(gate_type: UnitaryGateType) -> Box<dyn MatrixConverterArb>
[src]
impl Hash for UnitaryGateType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<UnitaryGateType> for UnitaryGateType
[src]
fn eq(&self, other: &UnitaryGateType) -> bool
[src]
fn ne(&self, other: &UnitaryGateType) -> bool
[src]
impl StructuralEq for UnitaryGateType
[src]
impl StructuralPartialEq for UnitaryGateType
[src]
impl<'_> TryFrom<UnitaryGateType> for UnboundUnitaryGate<'_>
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(gate_type: UnitaryGateType) -> Result<Self, Self::Error>
[src]
impl TryFrom<UnitaryGateType> for Matrix
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(gate_type: UnitaryGateType) -> Result<Self, Self::Error>
[src]
impl TryFrom<dqcs_predefined_gate_t> for UnitaryGateType
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnitaryGateType
impl Send for UnitaryGateType
impl Sync for UnitaryGateType
impl Unpin for UnitaryGateType
impl UnwindSafe for UnitaryGateType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,