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
  • The Number of States
  • A 2 Qubit System
  • Calculating the Probability of States
  • Measuring Probabilities
  • Notation for Systems with n Qubits
  • Uniform Superposition
  • Notation

Was this helpful?

  1. Qubits

Multi-Qubit Systems

Operations on multi-qubit systems

PreviousQuantum BitsNextQuantum Circuit Summary

Last updated 5 years ago

Was this helpful?

The Number of States

In awe have two possible pieces of information - true or false. That's still the case here - we on quantum systems. So for multi-qubit systems, how do we decide the number of distinguishable states?

We take the number of possible pieces of information (so 2 - 0 or 1) and we take it to the power of the number of qubits in the system, nnn. So for a single qubit system:

n=1,2n=21=2n=1, \hspace{8pt} 2^n = 2^1 = 2n=1,2n=21=2

A 2 Qubit System

Let's take the a 2 qubit system as an example. First let's determine the number of :

n=2,2n=22=4n=2, \hspace{8pt}2^n=2^2=4n=2,2n=22=4

Our will have the same number of as we have distinguishable states. If NNN is the number of dimensions, we can say that N=4N=4N=4.

For a system in 4 dimensions, we need 4 basis vectors which each have 4 elements. If the basis vectors for a look like this:

∣0⟩=[10],∣1⟩=[01]|0\rangle = \begin{bmatrix}1\\0\end{bmatrix}, |1\rangle=\begin{bmatrix}0\\1\end{bmatrix}∣0⟩=[10​],∣1⟩=[01​]
∣00⟩=[1000],∣01⟩=[0100],∣10⟩=[0010],∣11⟩=[0001]|00\rangle=\begin{bmatrix}1\\0\\0\\0\end{bmatrix},|01\rangle=\begin{bmatrix}0\\1\\0\\0\end{bmatrix},|10\rangle=\begin{bmatrix}0\\0\\1\\0\end{bmatrix},|11\rangle=\begin{bmatrix}0\\0\\0\\1\end{bmatrix}∣00⟩=​1000​​,∣01⟩=​0100​​,∣10⟩=​0010​​,∣11⟩=​0001​​

This makes sense - it's also true for a classical system. If we had two classical bits, we could arrange the following combinations:

  • 000000, Both are 0

  • 010101, The first is 0 and the second is 1

  • 101010, The first is 1 and the second is 0

  • 111111, Both are 1

Calculating the Probability of States

We already know that the probability of all possible states has to add up to 1. So, if we combine all our possible states like this:

∣ψ⟩=a00∣00⟩+a01∣01⟩+a10∣10⟩+a11∣11⟩|\psi\rangle=a_{00}|00\rangle+a_{01}|01\rangle+a_{10}|10\rangle+a_{11}|11\rangle∣ψ⟩=a00​∣00⟩+a01​∣01⟩+a10​∣10⟩+a11​∣11⟩

Where a00−a11a_{00} - a_{11}a00​−a11​ are complex numbers representing the probability of each of the states being observed respectively, the probability of any specific state xxx being observed is:

∣ax∣2 |a_x|^2∣ax​∣2

Measuring Probabilities

Consider the following system:

∣ψ⟩=12∗(∣00⟩+∣01⟩)|\psi\rangle=\frac{1}{\sqrt{2}}*(|00\rangle+|01\rangle)∣ψ⟩=2​1​∗(∣00⟩+∣01⟩)
∣ψ⟩=12∗(∣00⟩+∣01⟩)|\psi\rangle=\frac{1}{\sqrt{2} }*(|\textcolor{red}{0}0\rangle+|\textcolor{red}{0}1\rangle)∣ψ⟩=2​1​∗(∣00⟩+∣01⟩)

We're only changing the possible states for the first qubit:

∣ψ⟩=12∗(∣00⟩+∣01⟩)|\psi\rangle=\frac{1}{\sqrt{2}}*(|0\textcolor{red}{0}\rangle+|0\textcolor{red}{1}\rangle)∣ψ⟩=2​1​∗(∣00⟩+∣01⟩)

So let's calculate the probabilities in this situation:

∣ψ⟩=12∣00⟩+12∣01⟩=a00∣00⟩+a01∣01⟩|\psi\rangle =\frac{1}{\sqrt{2}}|00\rangle + \frac{1}{\sqrt{2}}|01\rangle = a_{00}|00\rangle+a_{01}|01\rangle ∣ψ⟩=2​1​∣00⟩+2​1​∣01⟩=a00​∣00⟩+a01​∣01⟩
P(∣x⟩)=∣ax∣2P(|x\rangle)=|a_x|^2P(∣x⟩)=∣ax​∣2
When∣x⟩=∣00⟩,ax=a00=12&∣x⟩=∣01⟩,ax=a01=12\text{When}\hspace{6pt} |x\rangle=|00\rangle, \hspace{6pt} a_x=a_{00}=\frac{1}{\sqrt{2}} \hspace{6pt} \& \hspace{6pt} |x\rangle=|01\rangle, \hspace{6pt} a_x=a_{01}=\frac{1}{\sqrt{2}}When∣x⟩=∣00⟩,ax​=a00​=2​1​&∣x⟩=∣01⟩,ax​=a01​=2​1​
So...P(∣00⟩)=∣a00∣2=(12)2=12&P(∣01⟩)=∣a01∣2=(12)2=12\text{So...}\hspace{6pt} P(|00\rangle)=|a_{00}|^2= (\frac{1}{\sqrt{2}})^2=\frac{1}{2}\hspace{6pt} \& \hspace{6pt} P(|01\rangle)=|a_{01}|^2= (\frac{1}{\sqrt{2}})^2=\frac{1}{2}So...P(∣00⟩)=∣a00​∣2=(2​1​)2=21​&P(∣01⟩)=∣a01​∣2=(2​1​)2=21​
P(∣00⟩)=12,P(∣01⟩)=12P(|00\rangle)=\frac{1}{2}, \hspace{6pt} P(|01\rangle)=\frac{1}{2}P(∣00⟩)=21​,P(∣01⟩)=21​

For this system, the probabilities for the first qubit are equal - if we measure enough times we'll get 0 50% of the time and 1 50% of the time. The last qubit will always be 0.

Why do I say if we measure enough times? Because this is a probability distribution - nothing is guaranteed. If you measure this system an infinite number of times, you'll get a perfect 50/50 spread. Any less than that, and you'll get some noise - your measurement won't be perfect.

Notation for Systems with n Qubits

∣0⟩,∣1⟩,∣2⟩,∣3⟩,...,∣2n−1⟩|0\rangle, |1\rangle,|2\rangle,|3\rangle, ... , |2^n-1\rangle∣0⟩,∣1⟩,∣2⟩,∣3⟩,...,∣2n−1⟩

Where in the ∣0⟩|0\rangle∣0⟩ state, all the qubits in the system are 0, and for the ∣2n−1⟩|2^n-1\rangle∣2n−1⟩ state, all the qubits in the system are 1.

Recall also from our previous discussions on dot product, and basis that the inner product of any two of these basis vectors (labelled here ∣x⟩|x\rangle∣x⟩ and ∣y⟩|y\rangle∣y⟩) is 0, and that the inner product of any of these basis vectors with itself is 1:

⟨x∣y⟩=0,⟨x∣x⟩=1\langle x|y \rangle=0, \langle x | x \rangle=1⟨x∣y⟩=0,⟨x∣x⟩=1

Uniform Superposition

A special state for the nnn qubit system is the uniform superposition, where the system is equally likely to collapse to any of the possible distinguishable states.

Notation

We label the uniform superposition with the vector:

∣S⟩|S\rangle∣S⟩

For a single qubit system

So for a single qubit system:

∣S⟩=12∗(∣0⟩+∣1⟩)|S\rangle=\frac{1}{\sqrt{2}}*(|0\rangle+|1\rangle)∣S⟩=2​1​∗(∣0⟩+∣1⟩)

For a 2 qubit system

And when we have a 2 qubit system:

∣S⟩=12∗(∣00⟩+∣01⟩+∣10⟩+∣11⟩)|S\rangle=\frac{1}{2}*(|00\rangle+|01\rangle+|10\rangle+|11\rangle)∣S⟩=21​∗(∣00⟩+∣01⟩+∣10⟩+∣11⟩)

We have double the state - double the probability to go around - so (12)∗(12)=12(\frac{1}{\sqrt{2}})*(\frac{1}{\sqrt{2}})=\frac{1}{2}(2​1​)∗(2​1​)=21​

We can also write this using ∑\sum∑ as a shorthand for the "sum" or "series":

∣S⟩=12∑x=03∣x⟩|S\rangle=\frac{1}{2}\sum^3_{x=0}|x\rangle∣S⟩=21​x=0∑3​∣x⟩

In general

This sum notation is handy when we start to talk about a whole bunch of qubits. So, for a system with nnnqubits:

∣S⟩=K∑x=02n−1∣x⟩|S\rangle=K\sum^{2^n-1}_{x=0}|x\rangle∣S⟩=Kx=0∑2n−1​∣x⟩

Where KKK is defined as the probability of finding a qubit in the system in a particular state when the distribution is perfectly even (so each is equally likely). We can describe KKK more precisely like this:

⟨S∣S⟩=1=K2+K2+...continue for 2n iterations...+K2=K2∗2n\langle S | S \rangle = 1 = K^2+K^2+... \text{continue for } 2^n \text{ iterations}... + K^2 = K^2 * 2^n⟨S∣S⟩=1=K2+K2+...continue for 2n iterations...+K2=K2∗2n
K=12nK=\frac{1}{\sqrt{2^n}}K=2n​1​
P(∣x⟩)=12nP(|x\rangle) = \frac{1}{2^n}P(∣x⟩)=2n1​

And now with this new definition for KKK, we can revise our formula from earlier:

∣S⟩=12n∑x=02n−1∣x⟩|S\rangle=\frac{1}{\sqrt{2^n}}\sum^{2^n-1}_{x=0}|x\rangle∣S⟩=2n​1​x=0∑2n−1​∣x⟩

Then we can extend this idea for the basis vectors of our two qubit system :

Recall that are based on , which become real when they're squared.

After we measure it, the qubit in question will collapse to a specific state ∣x⟩|x\rangle∣x⟩ .

Here we're considering the possible states for the first qubit in this system. Why just the first? Because we read multi-qubit systems from , and the last qubit isn't changing:

In a system with nnn qubits, we label each state with the number represented by the of their binary identifier:

we learned that to get the real probability for a specific state, we need to square the value for axa_xax​, so...

Explanation of sigma (sum) notation
Earlier
(Nielsen, M. - p. 16)
(Nielsen, M. - p. 16)
right to left
decimal version
still work in binary
single qubit system
complex numbers
imaginary numbers
distinguishable states
classical system
basis vectors
dimensions