pub struct SparseChannel {
pub patterns: Vec<u32>,
pub weights: Vec<f64>,
pub n: u32,
}Expand description
A sparse Pauli channel given by its error distribution p(y) over n-bit
error patterns — the structure noise_learn assumes. weights sum to 1 and
include the identity pattern (0). The channel’s Pauli fidelities are
λ_x = Σ_y p(y)·(−1)^{x·y} — its Walsh–Hadamard spectrum.
Fields§
§patterns: Vec<u32>§weights: Vec<f64>§n: u32Implementations§
Trait Implementations§
Source§impl Clone for SparseChannel
impl Clone for SparseChannel
Source§fn clone(&self) -> SparseChannel
fn clone(&self) -> SparseChannel
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 SparseChannel
impl RefUnwindSafe for SparseChannel
impl Send for SparseChannel
impl Sync for SparseChannel
impl Unpin for SparseChannel
impl UnsafeUnpin for SparseChannel
impl UnwindSafe for SparseChannel
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