Glossary

What is a quantum gate?

An operation that changes the amplitudes of one or more qubits, the quantum version of a logic gate.

A quantum program is a sequence of gates followed by measurements. Some gates act on one qubit, such as one that turns a plain 0 into an even blend of 0 and 1. Others act on two qubits at once, and those are the ones that create entanglement.

Every gate can be undone by another gate, which is not true of ordinary logic gates. An AND gate that outputs 0 doesn’t tell you which inputs it got.

In the lessonsSee it in a simulation

Related