pub struct FactoredBlock {
pub probs: Vec<f64>,
pub mask: u64,
}Expand description
A single block in a factored probability distribution.
Each block represents the marginal probabilities for one independent
subsystem. The mask indicates which global qubit positions belong
to this block, and probs holds the 2^k marginal distribution.
Fields§
§probs: Vec<f64>Marginal probability vector for this block (length 2^k).
mask: u64Bitmask of global qubit positions belonging to this block.
Trait Implementations§
Source§impl Clone for FactoredBlock
impl Clone for FactoredBlock
Source§fn clone(&self) -> FactoredBlock
fn clone(&self) -> FactoredBlock
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 moreAuto Trait Implementations§
impl Freeze for FactoredBlock
impl RefUnwindSafe for FactoredBlock
impl Send for FactoredBlock
impl Sync for FactoredBlock
impl Unpin for FactoredBlock
impl UnsafeUnpin for FactoredBlock
impl UnwindSafe for FactoredBlock
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