Skip to main content
. 2019 Mar 8;9:3949. doi: 10.1038/s41598-019-40439-3

Figure 5.

Figure 5

Quantum circuit for implementing a C4NOT gate using 5 Toffoli gates and 2 ancilla qubits prepared in |0 in 3 steps. The control bits are a, b, c and d, and the target qubit is |t. The gates after the Toffoli gate for conditionally flipping the target qubit uncompute the ancila qubits in order to unentangle the ancillae from the system.