pub struct State {
pub reals: Vec<Float>,
pub imags: Vec<Float>,
pub n: u8,
}
Expand description
Representation of a Quantum State. Amplitudes are split between two vectors.
Fields§
§reals: Vec<Float>
The real components of the state.
imags: Vec<Float>
The imaginary components of the state.
n: u8
The number of qubits represented by the state.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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