SWAP, Toffoli, Fredkin gates

Here, a,b, and c are integers between 0 and n.
  1. SWAP gate:
    SW (a, b); or SW (a b);
  2. Toffoli gate with the control bits a and b:
    Tf (a b, c);
  3. Toffoli gate with the control bits b and c:
    Tf (a, b c);
  4. Fredkin gate with the SWAPped bits b and c:
    Fr (a, b c);
  5. Fredkin gate with the SWAPped bits a and b:
    Fr (a b, c);



root
2004-11-07