pub enum Controls {
None,
Single(usize),
Ones(Vec<usize>),
Mixed {
controls: Vec<usize>,
zeros: HashSet<usize>,
},
}
Expand description
Control qubits
Variants§
None
No controls
Single(usize)
Single Control
Ones(Vec<usize>)
Multiple Controls
Mixed
Mixed Controls
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Controls
impl Send for Controls
impl Sync for Controls
impl Unpin for Controls
impl UnwindSafe for Controls
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