English: This quantum circuit implements a three-qubit Toffoli gate composed from one- and two-qubit gates. Each of the three wires represents one qubit, and this circuit diagram should be read left-to-right. The single-qubit gates used are the standard Hadamard gate (H) and the (T) gate, as well as its conjugate transpose, represented by the "dagger" symbol. The only two-qubit gate used is the "CNOT" gate. Given a three-qubit standard-basis input state , the output is . This particular implementation is from the standard library of OpenQASM 2.
The following LaTeX code was used to generate this image:
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.