QubitLab
IDELearnPlaygroundDocsCommunity
Log in
QubitLab
IDELearnPlaygroundDocsCommunity
Log in
QubitLab
IDELearnPlaygroundDocsCommunity
Log in
HomeLearnCatalogRanksPlaygroundDocs
07 · Multi-Qubit Registers & Separability0%

You are reading without signing in. Sign in or continue as guest to take quizzes and climb the ranks.

Learn/QC 101Quantum Foundations·Lesson 7 of 7

Multi-Qubit Registers & Separability

Read |q1 q0⟩ labels the Qiskit way, build joint states with ⊗, and tell separable from entangled at a glance.

Beginner12 min read8 sections · 2 questions+45
By the end you will be able to
  1. 01Read a label such as |10⟩ as q1 = 1 and q0 = 0 (little-endian order).
  2. 02Build a two-qubit state from two one-qubit states with the tensor product, without heavy matrices.
  3. 03Decide whether a state is separable or entangled from the Bloch arrows, the purity and the Q-sphere.

QubitLab, like Qiskit, writes qubit 0 on the right. Think of the digits of a number: the rightmost digit is the ones place. A label is read |q1 q0⟩, and as a binary number it gives the index of the basis state. The usual slip: in the drawing q[0] is the top wire, but in the label it is the last character.

Labelq1q0Index (binary value)
|00⟩000
|01⟩011
|10⟩102
|11⟩113

01The tensor product in plain words

When two qubits are independent, the joint state just says 'q1 is in this state and q0 is in that state'. The tensor product ⊗ is the bookkeeping: multiply every amplitude of q1 with every amplitude of q0, and glue the labels together.

(a∣0⟩+b∣1⟩)q1​⊗(c∣0⟩+d∣1⟩)q0​=ac∣00⟩+ad∣01⟩+bc∣10⟩+bd∣11⟩
Example: |+⟩ ⊗ |+⟩ has a = b = c = d = 1/√2, so all four labels get amplitude 1/2 and probability 1/4.

02Separable or entangled?

A state that can be written as one factor times another is separable. A state that cannot is entangled. For two qubits there is a quick test on the four amplitudes: the state is separable exactly when the 'outer' product equals the 'inner' one.

a00​a11​=a01​a10​⟺separableBell: 2​1​⋅2​1​=0⋅0
The test works for pure two-qubit states. For the Bell state (|00⟩ + |11⟩)/√2 the left side is 1/2 and the right side is 0, so no choice of a, b, c, d can produce it.

03Seeing it in QubitLab

  • Bloch view: in a separable pure state every qubit has a full-length arrow (purity 1). When qubits are entangled the arrows shrink toward the centre; for a Bell pair they have length 0 and purity 1/2.
  • Q-sphere: one dot per basis state of the whole register, size for probability and colour for phase, |00⟩ at the north pole and |11⟩ at the south pole. It shows the joint state; combine it with the test above to judge separability.
Hands-on

Two independent qubits

State tab: four Q-sphere dots of equal size, and in the Bloch view both arrows have full length on the equator. Each qubit has a state of its own.

OpenQASM 3
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
h q[0];
h q[1];
Sign in to run (nothing is saved)
Open in the IDE Open in the Playground
Hands-on

Now entangle them

Same two qubits, but a CNOT instead of the second H. The Q-sphere keeps only |00⟩ and |11⟩, and both Bloch arrows collapse to the centre with purity 0.5: neither qubit has a state of its own any more.

OpenQASM 3
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
h q[0];
cx q[0], q[1];
Sign in to run (nothing is saved)
Open in the IDE Open in the Playground
Knowledge check

2 questions · one try each counts

Question 1

A two-qubit circuit returns the outcome 01. Which qubit read 1?

Sign in to answer and climb the ranks; you will come back to this lesson.

Question 2

Which of these states is entangled?

Sign in to answer and climb the ranks; you will come back to this lesson.

Key takeaway

Read labels right to left: the last character is q[0]. Independent qubits combine by the tensor product and keep full-length Bloch arrows; entangled qubits cannot be factored and their arrows shrink toward the centre.

Finished reading?

Knowledge check: 2 questions waiting above. Questions are optional. Mark it complete, or press Next: moving on marks it complete too.

Up next
QC 102 · Gates and Circuits · 10 min
Pauli gates: X, Y, Z
The three flips every circuit is built from, as matrices and as Bloch rotations.
Further reading
  • Docs: Q-sphere, Bloch and purity
More in Quantum Foundations
  • Why quantum computing?
  • Bits, qubits and notation
  • Superposition and the Hadamard gate
The Bloch spherePauli gates: X, Y, Z
In this lesson0%
  1. Introduction
  2. The tensor product in plain words
  3. Separable or entangled?
  4. Seeing it in QubitLab
  5. Try it: Two independent qubits
  6. Try it: Now entangle them
  7. Knowledge check
  8. Key takeaway
QubitLab
IDELearnPlaygroundDocsCommunity
Log in
QubitLab
IDELearnPlaygroundDocsCommunity
Log in