Struct roqoqo::operations::PragmaStartDecompositionBlock
source · pub struct PragmaStartDecompositionBlock {
qubits: Vec<usize>,
reordering_dictionary: HashMap<usize, usize>,
}
Expand description
This PRAGMA Operation signals the START of a decomposition block.
Fields§
§qubits: Vec<usize>
The qubits involved in the decomposition block.
reordering_dictionary: HashMap<usize, usize>
The reordering dictionary of the block.
Implementations§
Trait Implementations§
source§impl Clone for PragmaStartDecompositionBlock
impl Clone for PragmaStartDecompositionBlock
source§fn clone(&self) -> PragmaStartDecompositionBlock
fn clone(&self) -> PragmaStartDecompositionBlock
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for PragmaStartDecompositionBlock
impl<'de> Deserialize<'de> for PragmaStartDecompositionBlock
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<PragmaStartDecompositionBlock> for MultiQubitOperation
impl From<PragmaStartDecompositionBlock> for MultiQubitOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaStartDecompositionBlock) -> Self
fn from(v: PragmaStartDecompositionBlock) -> Self
Performs the conversion.
source§impl From<PragmaStartDecompositionBlock> for Operation
impl From<PragmaStartDecompositionBlock> for Operation
Implements the From trait from this Operation.
source§fn from(v: PragmaStartDecompositionBlock) -> Self
fn from(v: PragmaStartDecompositionBlock) -> Self
Performs the conversion.
source§impl From<PragmaStartDecompositionBlock> for PragmaOperation
impl From<PragmaStartDecompositionBlock> for PragmaOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaStartDecompositionBlock) -> Self
fn from(v: PragmaStartDecompositionBlock) -> Self
Performs the conversion.
source§impl InvolveQubits for PragmaStartDecompositionBlock
impl InvolveQubits for PragmaStartDecompositionBlock
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 PragmaStartDecompositionBlock
impl Operate for PragmaStartDecompositionBlock
Implements the universal basic trait Operate for this Operation.
source§impl OperateMultiQubit for PragmaStartDecompositionBlock
impl OperateMultiQubit for PragmaStartDecompositionBlock
Implements OperateMultiQubit trait for this Operation acting on a set of qubits.
source§impl PartialEq for PragmaStartDecompositionBlock
impl PartialEq for PragmaStartDecompositionBlock
source§fn eq(&self, other: &PragmaStartDecompositionBlock) -> bool
fn eq(&self, other: &PragmaStartDecompositionBlock) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Substitute for PragmaStartDecompositionBlock
impl Substitute for PragmaStartDecompositionBlock
Substitute trait allowing to replace symbolic parameters and to perform qubit mappings.
source§fn remap_qubits(
&self,
mapping: &HashMap<usize, usize>
) -> Result<Self, RoqoqoError>
fn remap_qubits( &self, mapping: &HashMap<usize, usize> ) -> Result<Self, RoqoqoError>
Remaps qubits in clone of the operation.
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§impl TryFrom<MultiQubitOperation> for PragmaStartDecompositionBlock
impl TryFrom<MultiQubitOperation> for PragmaStartDecompositionBlock
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<Operation> for PragmaStartDecompositionBlock
impl TryFrom<Operation> for PragmaStartDecompositionBlock
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<PragmaOperation> for PragmaStartDecompositionBlock
impl TryFrom<PragmaOperation> for PragmaStartDecompositionBlock
Implements the core::convert::TryFrom trait into this Operation.
impl Eq for PragmaStartDecompositionBlock
impl OperatePragma for PragmaStartDecompositionBlock
impl StructuralPartialEq for PragmaStartDecompositionBlock
Auto Trait Implementations§
impl Freeze for PragmaStartDecompositionBlock
impl RefUnwindSafe for PragmaStartDecompositionBlock
impl Send for PragmaStartDecompositionBlock
impl Sync for PragmaStartDecompositionBlock
impl Unpin for PragmaStartDecompositionBlock
impl UnwindSafe for PragmaStartDecompositionBlock
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.