pub struct Qubit(pub String, pub usize);
Expand description
A qubit defined in an openqasm program. Contains the name of the register containing the qubit, as well as the index of the qubit in the register.
Tuple Fields§
§0: String
§1: usize
Trait Implementations§
impl Eq for Qubit
impl StructuralPartialEq for Qubit
Auto Trait Implementations§
impl Freeze for Qubit
impl RefUnwindSafe for Qubit
impl Send for Qubit
impl Sync for Qubit
impl Unpin for Qubit
impl UnwindSafe for Qubit
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