Enum roqoqo::operations::ThreeQubitOperation
source · #[non_exhaustive]pub enum ThreeQubitOperation {
ControlledControlledPauliZ(ControlledControlledPauliZ),
ControlledControlledPhaseShift(ControlledControlledPhaseShift),
Toffoli(Toffoli),
}
Expand description
Enum of all Operations implementing OperateThreeQubit
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ControlledControlledPauliZ(ControlledControlledPauliZ)
Variant for ControlledControlledPauliZ
ControlledControlledPhaseShift(ControlledControlledPhaseShift)
Variant for ControlledControlledPhaseShift
Toffoli(Toffoli)
Variant for Toffoli
Trait Implementations§
source§impl Clone for ThreeQubitOperation
impl Clone for ThreeQubitOperation
source§fn clone(&self) -> ThreeQubitOperation
fn clone(&self) -> ThreeQubitOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ThreeQubitOperation
impl Debug for ThreeQubitOperation
source§impl<'de> Deserialize<'de> for ThreeQubitOperation
impl<'de> Deserialize<'de> for ThreeQubitOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl From<ControlledControlledPauliZ> for ThreeQubitOperation
impl From<ControlledControlledPauliZ> for ThreeQubitOperation
Implements the From trait from this Operation.
source§fn from(v: ControlledControlledPauliZ) -> Self
fn from(v: ControlledControlledPauliZ) -> Self
Performs the conversion.
source§impl From<ControlledControlledPhaseShift> for ThreeQubitOperation
impl From<ControlledControlledPhaseShift> for ThreeQubitOperation
Implements the From trait from this Operation.
source§fn from(v: ControlledControlledPhaseShift) -> Self
fn from(v: ControlledControlledPhaseShift) -> Self
Performs the conversion.
source§impl From<ThreeQubitOperation> for Operation
impl From<ThreeQubitOperation> for Operation
source§fn from(op: ThreeQubitOperation) -> Self
fn from(op: ThreeQubitOperation) -> Self
source§impl InvolveQubits for ThreeQubitOperation
impl InvolveQubits for ThreeQubitOperation
Implements InvolveQubits trait for the qubits involved in this Operation.
source§fn involved_qubits(&self) -> InvolvedQubits
fn involved_qubits(&self) -> InvolvedQubits
source§fn involved_classical(&self) -> InvolvedClassical
fn involved_classical(&self) -> InvolvedClassical
source§impl Operate for ThreeQubitOperation
impl Operate for ThreeQubitOperation
Implements the universal basic trait Operate for this Operation.
source§impl OperateThreeQubit for ThreeQubitOperation
impl OperateThreeQubit for ThreeQubitOperation
Trait for Operations acting on exactly three qubits.
source§impl PartialEq for ThreeQubitOperation
impl PartialEq for ThreeQubitOperation
source§fn eq(&self, other: &ThreeQubitOperation) -> bool
fn eq(&self, other: &ThreeQubitOperation) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ThreeQubitOperation
impl Serialize for ThreeQubitOperation
source§impl Substitute for ThreeQubitOperation
impl Substitute for ThreeQubitOperation
Implements Substitute trait allowing to replace symbolic parameters and to perform qubit mappings.
source§fn substitute_parameters(
&self,
calculator: &Calculator
) -> Result<Self, RoqoqoError>
fn substitute_parameters( &self, calculator: &Calculator ) -> Result<Self, RoqoqoError>
Substitutes symbolic parameters in clone of the operation.
source§fn remap_qubits(
&self,
mapping: &HashMap<usize, usize>
) -> Result<Self, RoqoqoError>
fn remap_qubits( &self, mapping: &HashMap<usize, usize> ) -> Result<Self, RoqoqoError>
Remaps the qubits in clone of the operation.
source§impl TryFrom<&Operation> for ThreeQubitOperation
impl TryFrom<&Operation> for ThreeQubitOperation
source§impl TryFrom<Operation> for ThreeQubitOperation
impl TryFrom<Operation> for ThreeQubitOperation
source§impl TryFrom<ThreeQubitOperation> for ControlledControlledPauliZ
impl TryFrom<ThreeQubitOperation> for ControlledControlledPauliZ
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<ThreeQubitOperation> for ControlledControlledPhaseShift
impl TryFrom<ThreeQubitOperation> for ControlledControlledPhaseShift
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<ThreeQubitOperation> for Toffoli
impl TryFrom<ThreeQubitOperation> for Toffoli
Implements the core::convert::TryFrom trait into this Operation.
impl StructuralPartialEq for ThreeQubitOperation
Auto Trait Implementations§
impl Freeze for ThreeQubitOperation
impl RefUnwindSafe for ThreeQubitOperation
impl Send for ThreeQubitOperation
impl Sync for ThreeQubitOperation
impl Unpin for ThreeQubitOperation
impl UnwindSafe for ThreeQubitOperation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.