Struct roqoqo::operations::PragmaStopDecompositionBlock
source · pub struct PragmaStopDecompositionBlock {
qubits: Vec<usize>,
}
Expand description
This PRAGMA Operation signals the STOP of a decomposition block.
Fields§
§qubits: Vec<usize>
The qubits involved in the decomposition block.
Implementations§
Trait Implementations§
source§impl Clone for PragmaStopDecompositionBlock
impl Clone for PragmaStopDecompositionBlock
source§fn clone(&self) -> PragmaStopDecompositionBlock
fn clone(&self) -> PragmaStopDecompositionBlock
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PragmaStopDecompositionBlock
impl Debug for PragmaStopDecompositionBlock
source§impl<'de> Deserialize<'de> for PragmaStopDecompositionBlock
impl<'de> Deserialize<'de> for PragmaStopDecompositionBlock
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<PragmaStopDecompositionBlock> for MultiQubitOperation
impl From<PragmaStopDecompositionBlock> for MultiQubitOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaStopDecompositionBlock) -> Self
fn from(v: PragmaStopDecompositionBlock) -> Self
Performs the conversion.
source§impl From<PragmaStopDecompositionBlock> for Operation
impl From<PragmaStopDecompositionBlock> for Operation
Implements the From trait from this Operation.
source§fn from(v: PragmaStopDecompositionBlock) -> Self
fn from(v: PragmaStopDecompositionBlock) -> Self
Performs the conversion.
source§impl From<PragmaStopDecompositionBlock> for PragmaOperation
impl From<PragmaStopDecompositionBlock> for PragmaOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaStopDecompositionBlock) -> Self
fn from(v: PragmaStopDecompositionBlock) -> Self
Performs the conversion.
source§impl InvolveQubits for PragmaStopDecompositionBlock
impl InvolveQubits for PragmaStopDecompositionBlock
Implements InvolveQubits trait for the qubits involved in this Operation.
source§fn involved_qubits(&self) -> InvolvedQubits
fn involved_qubits(&self) -> InvolvedQubits
Returns a list of all involved qubits.
source§fn involved_classical(&self) -> InvolvedClassical
fn involved_classical(&self) -> InvolvedClassical
source§impl Operate for PragmaStopDecompositionBlock
impl Operate for PragmaStopDecompositionBlock
Implements the universal basic trait Operate for this Operation.
source§impl OperateMultiQubit for PragmaStopDecompositionBlock
impl OperateMultiQubit for PragmaStopDecompositionBlock
Implements OperateMultiQubit trait for this Operation acting on a set of qubits.
source§impl PartialEq for PragmaStopDecompositionBlock
impl PartialEq for PragmaStopDecompositionBlock
source§fn eq(&self, other: &PragmaStopDecompositionBlock) -> bool
fn eq(&self, other: &PragmaStopDecompositionBlock) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Substitute for PragmaStopDecompositionBlock
impl Substitute for PragmaStopDecompositionBlock
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<MultiQubitOperation> for PragmaStopDecompositionBlock
impl TryFrom<MultiQubitOperation> for PragmaStopDecompositionBlock
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<Operation> for PragmaStopDecompositionBlock
impl TryFrom<Operation> for PragmaStopDecompositionBlock
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<PragmaOperation> for PragmaStopDecompositionBlock
impl TryFrom<PragmaOperation> for PragmaStopDecompositionBlock
Implements the core::convert::TryFrom trait into this Operation.
impl Eq for PragmaStopDecompositionBlock
impl OperatePragma for PragmaStopDecompositionBlock
impl StructuralPartialEq for PragmaStopDecompositionBlock
Auto Trait Implementations§
impl Freeze for PragmaStopDecompositionBlock
impl RefUnwindSafe for PragmaStopDecompositionBlock
impl Send for PragmaStopDecompositionBlock
impl Sync for PragmaStopDecompositionBlock
impl Unpin for PragmaStopDecompositionBlock
impl UnwindSafe for PragmaStopDecompositionBlock
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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.