pub struct QubitOp {
pub propriety: GatePropriety,
pub read_qubits: BTreeSet<usize>,
}Expand description
Per-qubit dependency record maintained by a BasicBlock.
One entry exists in BasicBlock::qubits_op for each qubit that appears
as a gate target. The record accumulates the most general gate propriety
seen for that qubit (via GatePropriety::restrict) and the set of
control qubits that have influenced it.
Fields§
§propriety: GateProprietyThe most general GatePropriety of any gate that has targeted this qubit.
read_qubits: BTreeSet<usize>The set of all control qubit indices for gates targeting this qubit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QubitOp
impl RefUnwindSafe for QubitOp
impl Send for QubitOp
impl Sync for QubitOp
impl Unpin for QubitOp
impl UnsafeUnpin for QubitOp
impl UnwindSafe for QubitOp
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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