Skip to main content

About this free course

Download this course

Share this free course

Introduction to quantum computing
Introduction to quantum computing

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

5 Qubits and quantum gates

Quantum computing is based on units of information called qubits (quantum bits, and pronounced kew-bits), which obey the laws of quantum mechanics. A qubit is the quantum analogue of a classical bit. The classical bit values 0 and 1 are replaced by the orthonormal basis states of the quantum-mechanical qubit vertical line zero mathematical right angle bracket and vertical line one mathematical right angle bracket . The basis states are given the name logical states, since they correspond to the classical bits upon which the logic gates operate. The key difference between qubits and classical bits is that qubits can exist in a superposition of the vertical line zero mathematical right angle bracket and vertical line one mathematical right angle bracket states, which means qubits can be prepared in the superposition state:

absolute value of psi mathematical right angle bracket equals a sub zero times zero mathematical right angle bracket prefix plus of a sub one vertical line one mathematical right angle bracket

Remarkably, you can take logic gates similar to the Boolean logic gates of classical computing and apply them to the qubits. In doing so, the input state of the qubits is transformed into the output state. To obtain the result of the computation, the value (0 or 1) of each qubit is measured. As you will see, the resulting outputs can include entangled states of two or more qubits.

Quantum entanglement is a fundamental resource for quantum computing as it involves the distribution of information in a fundamentally non-classical way.

In this section, you will learn the definition of a qubit and be introduced to some single-qubit and two-qubit logic gates. The quantum CNOT gate is an important gate as it can entangle and disentangle a pair of qubits. By the end of this section you will have been introduced to quantum circuits and there is a final activity to test your understanding.