Skip to main content

cnot

Function cnot 

Source
pub fn cnot() -> Vec<usize>
Expand description

CNOT (2-bit): (a,b) ↦ (a, a⊕b), state encoded a | b<<1. The universal reversible XOR generator — RevXor lifted to a gate.