pub struct Matrix { /* private fields */ }Expand description
A dense complex square matrix, stored row-major.
Used to pass Kraus operators to DensityMatrix::apply_kraus. Most
callers will not build one by hand: DensityMatrix::bit_flip_kraus and
DensityMatrix::depolarizing_kraus construct ready-made single-qubit
noise channels, already embedded into the full n-qubit space.
Implementations§
Source§impl Matrix
impl Matrix
Trait Implementations§
impl StructuralPartialEq for Matrix
Auto Trait Implementations§
impl Freeze for Matrix
impl RefUnwindSafe for Matrix
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnsafeUnpin for Matrix
impl UnwindSafe for Matrix
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