[−][src]Enum q1tsim::circuit::QuStateRepr
Enumeration for the possible representations of the quantum state
Variants
Stabilizer(StabilizerState)
Stabilizer tableau
Vector(VectorState)
Coefficient vector
Methods
impl QuStateRepr
[src]
pub fn vector(nr_qbits: usize, nr_shots: usize) -> Self
[src]
Create a new coefficient vector backend for nr_qbits
qbits, averaging
measurements over nr_shots
runs.
pub fn stabilizer(nr_qbits: usize, nr_shots: usize) -> Self
[src]
Create a new stabilizer tableau backend for nr_qbits
qbits, averaging
measurements over nr_shots
runs.
Auto Trait Implementations
impl Send for QuStateRepr
impl Unpin for QuStateRepr
impl Sync for QuStateRepr
impl UnwindSafe for QuStateRepr
impl RefUnwindSafe for QuStateRepr
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,