From the course: Quantum Computing Fundamentals

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Quantum logic gates

Quantum logic gates

- Now that we've seen how to represent information with qubits, we're ready to start writing algorithms to manipulate that data. A quantum algorithm applies a specific sequence of operations to our qubits to change their quantum state in a controlled manner. And a common way to visually represent those algorithms is what's called the quantum circuit model which is a diagram that shows the sequence of steps in a quantum computation. Reading a quantum circuit diagram is similar to reading a sheet of music. Each of the horizontal wires correspond to an individual qubit. So the algorithm shown here uses three qubits which will all be initialized to the zero basis state at the beginning of this diagram on the far left. This circuit also has three classical bits which we'll use to store the results when measuring those qubits. Since we don't use those classical bits for anything other than storing results,…

Contents