pub struct Sparse { /* private fields */ }Trait Implementations§
Source§impl QuantumExecution for Sparse
impl QuantumExecution for Sparse
fn new(num_qubits: usize) -> Result<Self>
fn pauli_x(&mut self, target: usize, control: &[usize])
fn pauli_y(&mut self, target: usize, control: &[usize])
fn pauli_z(&mut self, target: usize, control: &[usize])
fn hadamard(&mut self, target: usize, control: &[usize])
fn phase(&mut self, lambda: f64, target: usize, control: &[usize])
fn rx(&mut self, theta: f64, target: usize, control: &[usize])
fn ry(&mut self, theta: f64, target: usize, control: &[usize])
fn rz(&mut self, theta: f64, target: usize, control: &[usize])
fn measure<R: Rng>(&mut self, target: usize, rng: &mut R) -> bool
fn dump(&mut self, qubits: &[usize]) -> DumpData
Auto Trait Implementations§
impl Freeze for Sparse
impl RefUnwindSafe for Sparse
impl Send for Sparse
impl Sync for Sparse
impl Unpin for Sparse
impl UnwindSafe for Sparse
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more