Struct rusq::Qubit
[−]
[src]
pub struct Qubit { pub index: usize, }
A type for a qubit.
This qubit type just represents the index in a given quantum machine. All "states" are carried by a type implementing QuantumMachine trait.
Fields
index: usize
The index in a given quantum machine.
Trait Implementations
impl Debug for Qubit
[src]
impl PartialEq for Qubit
[src]
fn eq(&self, __arg_0: &Qubit) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Qubit) -> bool
[src]
This method tests for !=
.
impl Eq for Qubit
[src]
impl Clone for Qubit
[src]
fn clone(&self) -> Qubit
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more