Enum roqoqo::operations::InvolvedClassical
source · pub enum InvolvedClassical {
All(String),
AllQubits(String),
None,
Set(HashSet<(String, usize)>),
}
Expand description
Represents classical register entries involved in a roqoqo Operation.
Variants§
All(String)
Operation affects all entries of a classical register.
AllQubits(String)
Operation affects all entries of a classical register up to the number of qubits in device.
None
Operation affects no classical entries (annotations etc.).
Set(HashSet<(String, usize)>)
Operation affects a specific set of classical entries.
Trait Implementations§
source§impl Clone for InvolvedClassical
impl Clone for InvolvedClassical
source§fn clone(&self) -> InvolvedClassical
fn clone(&self) -> InvolvedClassical
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InvolvedClassical
impl Debug for InvolvedClassical
source§impl<'de> Deserialize<'de> for InvolvedClassical
impl<'de> Deserialize<'de> for InvolvedClassical
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for InvolvedClassical
impl PartialEq for InvolvedClassical
source§fn eq(&self, other: &InvolvedClassical) -> bool
fn eq(&self, other: &InvolvedClassical) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InvolvedClassical
impl Serialize for InvolvedClassical
impl Eq for InvolvedClassical
impl StructuralPartialEq for InvolvedClassical
Auto Trait Implementations§
impl Freeze for InvolvedClassical
impl RefUnwindSafe for InvolvedClassical
impl Send for InvolvedClassical
impl Sync for InvolvedClassical
impl Unpin for InvolvedClassical
impl UnwindSafe for InvolvedClassical
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
Mutably borrows from an owned value. Read more
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
Compare self to
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>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.