Articles by others on the same topic
The Toffoli gate is a reversible three-qubit quantum gate with two controls and one target. It flips the target only when both controls are .
For a target initially in , the output target records the classical AND while both input labels remain available. Applying the Toffoli gate again erases that computed target reversibly. The same rule acts linearly on quantum superpositions, so it can be used inside a coherent quantum circuit. [ref]