Function quantum::gates::toffoli [] [src]

pub fn toffoli() -> Gate

The three qubit Toffoli gate.

If the first two bits are in the state |1> , it applies a Pauli-X on the third bit, else it does nothing.

See Wikipedia for more information.