Learning Quantum
  • Project Scope and Purpose
  • Getting Started
    • Need to Know
    • Resources
  • Linear Algebra
    • Linear Algebra Summary
      • Math References
    • Basics
    • Vector Relationships
    • Span, Basis and Spaces
    • Transformations
  • Physics
    • Physics Summary
      • Physics References
    • Classical Mechanics
    • Quantum Mechanics
  • Qubits
    • Qubits Summary
      • Qubit References
    • Classical Bits
    • Quantum Bits
    • Multi-Qubit Systems
  • Quantum Circuits
    • Quantum Circuit Summary
      • Quantum Circuit References
    • Classical Models of Computation
    • Quantum Information
    • Single Qubit Gates
    • Multi-Qubit Gates
  • IBMQ
    • IBMQ Summary
    • Getting Access to IBM Quantum
    • IBMQ Tools
    • Using Quantum Gates - The Circuit Composer
  • Qiskit
    • Qiskit Overview
    • Installing Qiskit
    • Parts of a Qiskit Program
    • Writing a Qiskit Program
  • Supplementary
  • Quantum Safe Algorithms
Powered by GitBook
On this page
  • Reversible Computing
  • Reversibility
  • Converting Classical Gates
  • Measuring
  • The Bloch Sphere
  • What the Diagram Shows Us
  • Quantum Circuits
  • Quantum Gates
  • Notation

Was this helpful?

  1. Quantum Circuits

Quantum Information

Introduction to reversible computing and the Bloch sphere

PreviousClassical Models of ComputationNextSingle Qubit Gates

Last updated 5 years ago

Was this helpful?

In this section, we'll combine many of the concepts we've discussion in the tutorial so far. This means that if anything so far has confused you or if you feel like you need more information on anything, this would be the time to review.

Reversible Computing

Simply put, quantum calculations need to be reversible. During the process of quantum computation, information should not be destroyed.

In a classical system this isn't a concern - as long as we get the result we're looking for, we don't have any problem. For our , the state of the system changes with every instruction. We're not so concerned with remembering the previous state, as long as the current state conforms to our expectations.

Reversibility

A computation is reversible if it is always possible to uniquely recover the input, given the output. For example, the NOT operation is reversible, because if the output bit is 0, you know the input bit must have been 1, and vice versa. On the other hand, the AND operation is not reversible.

It's important to fully understand what this means. If I provide to you only the resulting state of some quantum computation, it must be true that you can figure out where I started from.

Converting Classical Gates

While most classical gates are not reversible, we can change them so that they are. This requires adding more wires, used only to keep the information we put in :

Measuring

This means we need to measure at the end whenever possible, so that we preserve reversibility until we have no choice.

The Bloch Sphere

What the Diagram Shows Us

Let's explore some of the things labelled on this diagram:

    • Note that the sphere has a radius of exactly one unit

    • See that these two are opposite each other on the diagram

    • Our qubit projects a shadow - this is the dotted line we see

    • When we draw a line between the shadow and our vector, we get a right angle triangle

This diagram doesn't show multiple qubits systems, mostly because it can't. Systems with more than one qubit are too complex to imagine with a picture like this.

Quantum Circuits

Using these principles of quantum information, we can begin to construct quantum circuits in the same way that we would with a classical circuit.

Quantum Gates

However, there are a few important differences between classical gates and quantum gates. One is that all these operators will be reversible. This means our transformation matrices will have an inverse that we put our output in to get back to our input.

Notation

The circuit

We draw quantum circuits in a similar way that we draw classical gates. We start with our inputs on one side, put them through various transformations via logic gate, and on the other side we get our outputs.

Though the quantum circuit doesn't have a wire like the classical one, we'll still use a line to show which inputs are entering which gates and in what order.

Measurements

Though the process of measurement doesn't have a transformation matrix and isn't really a gate, we'll use a similar notation for it:

Recall that measurements are stored in classical bits, so our diagram will also include those:

The one non-reversible action we take in quantum computation is (or observation).

When we measure a qubit, it into a particular state. It's forced to reveal what it had been doing this whole time - like our , we know if it was alive or not.

The Bloch sphere can be used to describe the behaviour of single qubit systems . Here we see that we have a , and like all quantum system we're able toas well as the real numbers.

x,y,zx, y , zx,y,z are our three axis for 3-dimentional space

∣0⟩|0\rangle∣0⟩ and ∣1⟩|1\rangle∣1⟩ are our two distinguishable states

∣ψ⟩|\psi\rangle∣ψ⟩ is our vector in an unknown state - the single qubit we're describing

θ\thetaθ is the angle between the vector for our qubit ∣ψ⟩|\psi\rangle∣ψ⟩ and the zzz axis

φ\varphiφ is the angle between the shadow of our qubit and the xxx axis

The sphere shows us all of the possible states our single qubit can be in. Not just ∣0⟩|0\rangle∣0⟩and ∣1⟩|1\rangle∣1⟩, but the infinite combinations in between. By measuring the angle the vector ∣ψ⟩|\psi\rangle∣ψ⟩ and it's shadow make with respect to the xxx, yyyand zzz axis, we can derive the probability of finding our qubit in a particular state when we measure it.

Like , quantum gates are all described with a which tells us how they change our qubit vector.

Another is that we can now include and numbers in our transformations. This accounts for quantum vectors ranging over the set of complex numbers in addition to real ones.

Lastly quantum gates produce the same number of outputs as we provide inputs. This means no quantum gates are like the classical AND gate, where they two in two inputs and produce one output. This relates back to - no information can be lost.

Most gates will be represented by a box around their corresponding symbol - some may be represented by other symbols. As we go through descriptions for the different gates, we'll include their symbols :

For these tutorials, gates will be produce using IBMQ's tool. We'll talk more about how you can get access to this later on.

More detail on what measurement is and how it works
More general information about the Bloch sphere
More detailed information about how the Bloch sphere is derived and what information we can find on it
Circuit Composer
reversibility
3-dimensional space
transformation matrix
(Kuo, S. - 2013)
(Kaye, P. - p.12)
(Kaye, P. - p.12)
(Wikipedia - 2020)
The reversible AND gate keeps a copy of the inputs
A diagram of the Bloch sphere
A diagram showing an empty quantum circuit
A diagram showing several quantum gates and their representation
A diagram showing the symbol for measurement
A quantum circuit diagram showing a measurement
measuring
range across the complex numbers
imaginary
complex
cat in the box
Turing machine
classical gates
collapses