Struct roqoqo::operations::PragmaGetStateVector
source · pub struct PragmaGetStateVector {
readout: String,
circuit: Option<Circuit>,
}
Expand description
This PRAGMA measurement operation returns the statevector of a quantum register.
Fields§
§readout: String
The name of the classical readout register.
circuit: Option<Circuit>
The measurement preparation Circuit, applied on a copy of the register before measurement (None if not defined, Some(Circuit) otherwise).
Implementations§
Trait Implementations§
source§impl Clone for PragmaGetStateVector
impl Clone for PragmaGetStateVector
source§fn clone(&self) -> PragmaGetStateVector
fn clone(&self) -> PragmaGetStateVector
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PragmaGetStateVector
impl Debug for PragmaGetStateVector
source§impl<'de> Deserialize<'de> for PragmaGetStateVector
impl<'de> Deserialize<'de> for PragmaGetStateVector
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<PragmaGetStateVector> for Operation
impl From<PragmaGetStateVector> for Operation
Implements the From trait from this Operation.
source§fn from(v: PragmaGetStateVector) -> Self
fn from(v: PragmaGetStateVector) -> Self
Performs the conversion.
source§impl From<PragmaGetStateVector> for PragmaOperation
impl From<PragmaGetStateVector> for PragmaOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaGetStateVector) -> Self
fn from(v: PragmaGetStateVector) -> Self
Performs the conversion.
source§impl InvolveQubits for PragmaGetStateVector
impl InvolveQubits for PragmaGetStateVector
source§fn involved_qubits(&self) -> InvolvedQubits
fn involved_qubits(&self) -> InvolvedQubits
Lists all involved qubits (here: All).
source§fn involved_classical(&self) -> InvolvedClassical
fn involved_classical(&self) -> InvolvedClassical
source§impl Operate for PragmaGetStateVector
impl Operate for PragmaGetStateVector
Implements the universal basic trait Operate for this Operation.
source§impl PartialEq for PragmaGetStateVector
impl PartialEq for PragmaGetStateVector
source§fn eq(&self, other: &PragmaGetStateVector) -> bool
fn eq(&self, other: &PragmaGetStateVector) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PragmaGetStateVector
impl Serialize for PragmaGetStateVector
source§impl Substitute for PragmaGetStateVector
impl Substitute for PragmaGetStateVector
Implements 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 operations 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<Operation> for PragmaGetStateVector
impl TryFrom<Operation> for PragmaGetStateVector
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<PragmaOperation> for PragmaGetStateVector
impl TryFrom<PragmaOperation> for PragmaGetStateVector
Implements the core::convert::TryFrom trait into this Operation.
impl OperatePragma for PragmaGetStateVector
impl StructuralPartialEq for PragmaGetStateVector
Auto Trait Implementations§
impl Freeze for PragmaGetStateVector
impl RefUnwindSafe for PragmaGetStateVector
impl Send for PragmaGetStateVector
impl Sync for PragmaGetStateVector
impl Unpin for PragmaGetStateVector
impl UnwindSafe for PragmaGetStateVector
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.