pub struct GateInfo {
pub gate: Box<dyn GateOp>,
pub index: usize,
pub qubits: Vec<QubitId>,
pub is_parameterized: bool,
}Expand description
Information about gate connectivity
Fields§
§gate: Box<dyn GateOp>The gate being analyzed
index: usizeIndex in the gate sequence
qubits: Vec<QubitId>Qubits this gate acts on
is_parameterized: boolWhether this gate is parameterized
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GateInfo
impl !RefUnwindSafe for GateInfo
impl Send for GateInfo
impl Sync for GateInfo
impl Unpin for GateInfo
impl !UnwindSafe for GateInfo
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