Struct roqoqo::operations::PragmaGetDensityMatrix
source · pub struct PragmaGetDensityMatrix {
readout: String,
circuit: Option<Circuit>,
}
Expand description
This PRAGMA measurement operation returns the density matrix 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 PragmaGetDensityMatrix
impl Clone for PragmaGetDensityMatrix
source§fn clone(&self) -> PragmaGetDensityMatrix
fn clone(&self) -> PragmaGetDensityMatrix
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PragmaGetDensityMatrix
impl Debug for PragmaGetDensityMatrix
source§impl<'de> Deserialize<'de> for PragmaGetDensityMatrix
impl<'de> Deserialize<'de> for PragmaGetDensityMatrix
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<PragmaGetDensityMatrix> for Operation
impl From<PragmaGetDensityMatrix> for Operation
Implements the From trait from this Operation.
source§fn from(v: PragmaGetDensityMatrix) -> Self
fn from(v: PragmaGetDensityMatrix) -> Self
Performs the conversion.
source§impl From<PragmaGetDensityMatrix> for PragmaOperation
impl From<PragmaGetDensityMatrix> for PragmaOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaGetDensityMatrix) -> Self
fn from(v: PragmaGetDensityMatrix) -> Self
Performs the conversion.
source§impl InvolveQubits for PragmaGetDensityMatrix
impl InvolveQubits for PragmaGetDensityMatrix
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 PragmaGetDensityMatrix
impl Operate for PragmaGetDensityMatrix
Implements the universal basic trait Operate for this Operation.
source§impl PartialEq for PragmaGetDensityMatrix
impl PartialEq for PragmaGetDensityMatrix
source§fn eq(&self, other: &PragmaGetDensityMatrix) -> bool
fn eq(&self, other: &PragmaGetDensityMatrix) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PragmaGetDensityMatrix
impl Serialize for PragmaGetDensityMatrix
source§impl Substitute for PragmaGetDensityMatrix
impl Substitute for PragmaGetDensityMatrix
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 PragmaGetDensityMatrix
impl TryFrom<Operation> for PragmaGetDensityMatrix
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<PragmaOperation> for PragmaGetDensityMatrix
impl TryFrom<PragmaOperation> for PragmaGetDensityMatrix
Implements the core::convert::TryFrom trait into this Operation.
impl OperatePragma for PragmaGetDensityMatrix
impl StructuralPartialEq for PragmaGetDensityMatrix
Auto Trait Implementations§
impl Freeze for PragmaGetDensityMatrix
impl RefUnwindSafe for PragmaGetDensityMatrix
impl Send for PragmaGetDensityMatrix
impl Sync for PragmaGetDensityMatrix
impl Unpin for PragmaGetDensityMatrix
impl UnwindSafe for PragmaGetDensityMatrix
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.