pub enum GateClass {
Clifford,
NonClifford,
Measurement,
Reset,
Barrier,
}Expand description
Detailed gate classification for routing decisions.
Every Gate variant maps to exactly one GateClass, making it easy to
partition a circuit by gate type without pattern-matching on every variant.
Variants§
Clifford
Clifford gate (H, S, Sdg, X, Y, Z, CNOT, CZ, SWAP).
NonClifford
Non-Clifford unitary (T, Tdg, rotations, custom unitary).
Measurement
Measurement operation.
Reset
Reset operation.
Barrier
Barrier (scheduling hint, no physical effect).
Trait Implementations§
impl Copy for GateClass
impl Eq for GateClass
impl StructuralPartialEq for GateClass
Auto Trait Implementations§
impl Freeze for GateClass
impl RefUnwindSafe for GateClass
impl Send for GateClass
impl Sync for GateClass
impl Unpin for GateClass
impl UnsafeUnpin for GateClass
impl UnwindSafe for GateClass
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