pub struct QuantumGuard {
pub input: u32,
pub instances: Vec<TemplateInstanceId>,
pub detectors: Vec<u32>,
pub detector_bundles: Vec<u32>,
pub restarts: Vec<u32>,
pub detector_parities: Vec<(u32, NodeDetectorParity)>,
pub restart_parities: Vec<(u32, NodeDetectorParity)>,
}Expand description
Members and side tables enabled by one quantum node’s Value input.
Each instance/detector/restart may occur in at most one registration; a
compound condition is an ordinary Compute producer feeding input.
Fields§
§input: u32Incoming selector slot.
instances: Vec<TemplateInstanceId>Conditionally enabled instances.
detectors: Vec<u32>Conditionally enabled detector indices.
detector_bundles: Vec<u32>Conditionally enabled detector bundle use indices.
restarts: Vec<u32>Conditionally enabled restart indices.
detector_parities: Vec<(u32, NodeDetectorParity)>Parity contributions XORed into selected detector rows by this input.
restart_parities: Vec<(u32, NodeDetectorParity)>Parity contributions XORed into selected restart rows by this input.
Trait Implementations§
Source§impl Clone for QuantumGuard
impl Clone for QuantumGuard
Source§fn clone(&self) -> QuantumGuard
fn clone(&self) -> QuantumGuard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuantumGuard
impl Debug for QuantumGuard
Source§impl Default for QuantumGuard
impl Default for QuantumGuard
Source§fn default() -> QuantumGuard
fn default() -> QuantumGuard
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QuantumGuard
impl<'de> Deserialize<'de> for QuantumGuard
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
impl Eq for QuantumGuard
Source§impl PartialEq for QuantumGuard
impl PartialEq for QuantumGuard
Source§impl Serialize for QuantumGuard
impl Serialize for QuantumGuard
impl StructuralPartialEq for QuantumGuard
Auto Trait Implementations§
impl Freeze for QuantumGuard
impl RefUnwindSafe for QuantumGuard
impl Send for QuantumGuard
impl Sync for QuantumGuard
impl Unpin for QuantumGuard
impl UnsafeUnpin for QuantumGuard
impl UnwindSafe for QuantumGuard
Blanket Implementations§
§impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
fn assign_index(&mut self, index: usize, to: bool)
fn negate_index(&mut self, index: usize)
fn clear_bits(&mut self)
fn assign_random(
&mut self,
bit_count: usize,
random_number_generator: &mut impl RngExt,
)where
BorrowedSelf: BitLength,
§impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
fn assign(&mut self, other: &Other)
fn bitxor_assign(&mut self, other: &Other)
fn bitand_assign(&mut self, other: &Other)
fn bitor_assign(&mut self, other: &Other)
§impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
§impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
fn index(&self, index: usize) -> bool
fn weight(&self) -> usize
fn parity(&self) -> bool
fn is_zero(&self) -> bool
fn is_unit(&self, index: usize) -> bool
fn support<'a>(&'a self) -> impl SortedIteratorwhere
BorrowedSelf: 'a,
fn max_support(&self) -> Option<usize>
fn min_support(&self) -> Option<usize>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.