pub struct StateVector {
pub n: usize,
pub amps: Vec<C>,
}Expand description
A pure quantum state — a dense statevector of 2ⁿ complex amplitudes.
Fields§
§n: usize§amps: Vec<C>Implementations§
Trait Implementations§
Source§impl Clone for StateVector
impl Clone for StateVector
Source§fn clone(&self) -> StateVector
fn clone(&self) -> StateVector
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 StateVector
impl Debug for StateVector
Source§impl PartialEq for StateVector
impl PartialEq for StateVector
impl StructuralPartialEq for StateVector
Auto Trait Implementations§
impl Freeze for StateVector
impl RefUnwindSafe for StateVector
impl Send for StateVector
impl Sync for StateVector
impl Unpin for StateVector
impl UnsafeUnpin for StateVector
impl UnwindSafe for StateVector
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