Learning Notes
Home
Home
  • Guide
    • Shortkeys
    • Commands
  • Cpp
    • Basic
    • Scope, Duration, and Linkage
    • Pointers(1)
    • Pointers(2)
  • Rust Learning
    • 1.Number Types
    • 2.Ownership
    • 3.Struct
    • 4.Enum
    • 5.Package-management
    • 6.Vector
    • 7.Error handle
    • 8.Trait 泛型
    • 9.Life time
    • 10.Test
    • 11.Minigrep
    • 12.Closure 闭包
    • 13.Smart pointer 智能指针
    • 14.Fearless concurrency 无畏并发
  • Quantum Computing
    • Basic computing and quantum computing Theory
    • Teleportation
    • QKD and QFT
    • QFE and Shor's algorithm
    • QAOA
    • Quantum algorithms
    • Week 11
  • Statical Machine Learning
    • Bayesian Linear Regression
    • Linear regression and logistic regresion
    • Bais
    • SVM, Kernel Methods
    • Precepction and Artificial Neural Network
    • Cross validation, experts learning, MAB
    • Bayesian inference
    • GMM-EM
    • final
  • Software Project Management
    • Lecture
    • Revision
  • AI-planning
    • Classical planning
    • MDP and reinforcement learning
    • Game theory and final recap

Entanglement of Multi-Qubit Circuits, Teleportation and Superdense Coding (Week 4)

Bell states

∣Φ+⟩=12(∣00⟩+∣11⟩)∣Φ−⟩=12(∣00⟩−∣11⟩)∣Ψ+⟩=12(∣01⟩+∣10⟩)∣Ψ−⟩=12(01⟩−∣10⟩) |\Phi^+ \rangle = \frac{1}{\sqrt{2}} (|00\rangle + |11\rangle) \quad |\Phi^- \rangle = \frac{1}{\sqrt{2}} (|00 \rangle - |11\rangle) \newline |\Psi^+ \rangle = \frac{1}{\sqrt{2}} (|01 \rangle + | 10\rangle) \quad |\Psi^- \rangle = \frac{1}{\sqrt{2}} (01 \rangle - |10\rangle) ∣Φ+⟩=2​1​(∣00⟩+∣11⟩)∣Φ−⟩=2​1​(∣00⟩−∣11⟩)∣Ψ+⟩=2​1​(∣01⟩+∣10⟩)∣Ψ−⟩=2​1​(01⟩−∣10⟩)

Quantum teleportation

Alice would like to send a qubit’s unknown state ∣ψ⟩=α∣0⟩+β∣1⟩|\psi\rangle = \alpha | 0 \rangle + \beta | 1\rangle∣ψ⟩=α∣0⟩+β∣1⟩ to Bob

Alice does not know the state ∣ψ⟩|\psi \rangle∣ψ⟩, She cannot describe to Bob. If she Measure the qubit, she will collapse it to ∣0⟩|0 \rangle∣0⟩ or 1⟩1 \rangle1⟩.
Alice only have one qubit in the state ∣ψ⟩|\psi \rangle∣ψ⟩, and from the no-cloning theorem , she cannot make extra copies.

Quantum Solution
If Alice and Bob already share entanglement, they can use it to teleport the quantum state.

∣ψ⟩∣Φ+⟩=α∣0⟩∣Φ+⟩+β∣1⟩∣Φ+⟩=α∣0⟩12(∣00⟩+∣11⟩)+β∣1⟩12(∣00⟩+∣11⟩)=12[α(∣000⟩+∣011⟩)+β(∣100⟩+∣111⟩)] \begin{align*} |\psi \rangle |\Phi^+ \rangle &= \alpha |0 \rangle |\Phi^+ \rangle + \beta |1\rangle |\Phi^+ \rangle \\[5pt] &= \alpha|0\rangle \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle) + \beta|1\rangle \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle) \\[5pt] &= \frac{1}{\sqrt{2}}[\alpha(|000\rangle + |011\rangle) + \beta(|100\rangle + |111\rangle)] \end{align*} ∣ψ⟩∣Φ+⟩​=α∣0⟩∣Φ+⟩+β∣1⟩∣Φ+⟩=α∣0⟩2​1​(∣00⟩+∣11⟩)+β∣1⟩2​1​(∣00⟩+∣11⟩)=2​1​[α(∣000⟩+∣011⟩)+β(∣100⟩+∣111⟩)]​

The left two qubits belongs to Alice and the right qubit belongs to Bob.
First, Alice applies a CNOT gate to her 2 qubits:

12[α(∣000⟩+∣011⟩)+β(∣110⟩+∣101⟩)] \frac{1}{\sqrt{2}}[\alpha(|000\rangle + |011\rangle) + \beta(|110\rangle + |101\rangle)] 2​1​[α(∣000⟩+∣011⟩)+β(∣110⟩+∣101⟩)]

Next, she applied a Hardmard gate to her left qubit, yielding

12[α(∣+00⟩+∣+11⟩)+β(∣−10⟩+∣−01⟩)]=12[α(∣0⟩+∣1⟩)(∣00⟩+∣11⟩)+β(∣0⟩−∣1⟩)(∣10⟩+∣01⟩)]=12[∣00⟩(α∣0⟩+β∣1⟩)+∣01⟩(β∣0⟩+α∣1⟩)∣10⟩(α∣0⟩−β∣1⟩)+∣11⟩(−β∣0⟩+α∣1⟩)] \begin{align*} & \frac{1}{\sqrt{2}}[\alpha(|+00\rangle + |+11\rangle) + \beta (|-10\rangle+ |-01\rangle)] \\[5pt] &= \frac{1}{2}[\alpha(|0\rangle + |1\rangle)(|00\rangle + |11\rangle) + \beta (|0\rangle - |1\rangle)(|10\rangle + |01\rangle)] \\[5pt] &= \frac{1}{2}[|00\rangle (\alpha|0\rangle + \beta | 1\rangle) + |01\rangle (\beta |0\rangle + \alpha |1\rangle) |10\rangle(\alpha |0\rangle-\beta |1\rangle) + |11\rangle (-\beta|0\rangle + \alpha |1\rangle)] \end{align*} ​2​1​[α(∣+00⟩+∣+11⟩)+β(∣−10⟩+∣−01⟩)]=21​[α(∣0⟩+∣1⟩)(∣00⟩+∣11⟩)+β(∣0⟩−∣1⟩)(∣10⟩+∣01⟩)]=21​[∣00⟩(α∣0⟩+β∣1⟩)+∣01⟩(β∣0⟩+α∣1⟩)∣10⟩(α∣0⟩−β∣1⟩)+∣11⟩(−β∣0⟩+α∣1⟩)]​

Then Alice measures her two qubits. She gets 00, 01, 10, 11, each with probability 1/4. So after measurement, the possible states are

∣00⟩(α∣0⟩+β∣1⟩),∣01⟩(β∣0⟩+α∣1⟩),∣10⟩(α∣0⟩−β∣1⟩),∣11⟩(−β∣0⟩+α∣1⟩) |00\rangle (\alpha|0\rangle + \beta | 1\rangle), \newline |01\rangle (\beta |0\rangle + \alpha |1\rangle), \newline |10\rangle (\alpha |0\rangle-\beta |1\rangle), \newline |11\rangle (-\beta|0\rangle + \alpha |1\rangle) \newline ∣00⟩(α∣0⟩+β∣1⟩),∣01⟩(β∣0⟩+α∣1⟩),∣10⟩(α∣0⟩−β∣1⟩),∣11⟩(−β∣0⟩+α∣1⟩)

  • If Alice's measurement was 00, Bob does nothing because his qubit is now in the state ∣ψ⟩|\psi\rangle∣ψ⟩ that Alice wanted to send him
  • If measurement was 01, then Bob applies an XXX gate to his qubit, transforming it to ∣ψ⟩|\psi\rangle∣ψ⟩.
  • If measurement was 10, Bob applies a ZZZ gate to his qubit, transforming it into ∣ψ⟩|\psi\rangle∣ψ⟩
  • If measurement was 11, then Bob applies an XXX gate followed by a ZZZ gate, fransforming it into ψ⟩\psi\rangleψ⟩

Alice's qubit was not physically transferred to Bob, only information about what state it was in. In the process, Alice had to measure her qubit, destroying the quantum information, which is necessary because of the no-cloning theorem.

tele-circuit

The top is Bob's and the bottom two qubits are Alice's.

Superdense Coding

Alice wants to send classical information to Bob,say one of four possible restaurant options: American, Chinese, Italian, or Mexican. Alice only needs to send half the number of qubits as she would bits.

Quantum Solution
Alice can sent just one qubit, but it needs to be entangled with a second qubit that Bob already has. Say Alice and Bob sharte a pair of entangled qubits in the ∣Φ+⟩|\Phi^+ \rangle∣Φ+⟩ state:

Alice ~~ 12(∣00⟩+∣11⟩)\quad \frac{1}{\sqrt{2}} (|00\rangle + |11\rangle) \quad2​1​(∣00⟩+∣11⟩) ~~Bob

  • If Alice wants to send 00, she does nothing to her qubit, and sends it to Bob so that Bob has both qubits.
  • If Alice wants to send 01, she applies the XXX gate to her qubit, which transforms ∣Φ+⟩|\Phi^+\rangle∣Φ+⟩ to:

∣Ψ+⟩=12(∣01⟩+∣10⟩) |\Psi^+\rangle = \frac{1}{\sqrt{2}}(|01\rangle + |10\rangle) ∣Ψ+⟩=2​1​(∣01⟩+∣10⟩)

  • If Alice wants to send 10, she applies the ZZZ gate to her qubit, which transforms ∣Φ+⟩|\Phi^+\rangle∣Φ+⟩ to:

∣Φ−⟩=12(∣00⟩−11⟩) |\Phi^-\rangle = \frac{1}{\sqrt{2}}(|00\rangle-11\rangle) ∣Φ−⟩=2​1​(∣00⟩−11⟩)

  • Finally, If Alicee wants to send 11, she applies both XXX and ZZZ to her qubit. Applying XXX transforms ∣Φ+⟩|\Phi^+\rangle∣Φ+⟩ to ∣Ψ+⟩|\Psi^+\rangle∣Ψ+⟩ and appling Z transforms ∣Ψ+⟩|\Psi^+\rangle∣Ψ+⟩ to:

∣Ψ−⟩=12(∣01⟩−∣10⟩) |\Psi^-\rangle = \frac{1}{\sqrt{2}} (|01\rangle -|10\rangle) ∣Ψ−⟩=2​1​(∣01⟩−∣10⟩)

Bob can measure the two qubits to distinguish them. Bell mresurement: apply CNOT and then H⊗IH \otimes IH⊗I, then measureing in the Z-basis.That is :

∣Φ+⟩⟶CNOT12(∣00⟩+∣10⟩)=∣+⟩∣0⟩⟶H⊗I=∣00⟩,∣Ψ+⟩⟶CNOT12(∣01⟩+∣11⟩)=∣+⟩∣1⟩⟶H⊗I=∣01⟩,∣Φ−⟩⟶CNOT12(∣00⟩−∣10⟩)=∣−⟩∣0⟩⟶H⊗I=∣10⟩,∣Ψ−⟩⟶CNOT12(∣01⟩−∣11⟩)=∣−⟩∣1⟩⟶H⊗I=∣11⟩. |\Phi^+\rangle \stackrel{CNOT}{\longrightarrow} \frac{1}{\sqrt{2}}(|00\rangle + |10\rangle) = |+\rangle|0\rangle \stackrel{H\otimes I}{\longrightarrow}= |00\rangle, \\[6pt] |\Psi^+\rangle \stackrel{CNOT}{\longrightarrow} \frac{1}{\sqrt{2}}(|01\rangle + |11\rangle) = |+\rangle|1\rangle \stackrel{H\otimes I}{\longrightarrow}= |01\rangle, \\[6pt] |\Phi^-\rangle \stackrel{CNOT}{\longrightarrow} \frac{1}{\sqrt{2}}(|00\rangle - |10\rangle) = |-\rangle|0\rangle \stackrel{H\otimes I}{\longrightarrow}= |10\rangle, \\[6pt] |\Psi^-\rangle \stackrel{CNOT}{\longrightarrow} \frac{1}{\sqrt{2}}(|01\rangle - |11\rangle) = |-\rangle|1\rangle \stackrel{H\otimes I}{\longrightarrow}= |11\rangle. ∣Φ+⟩⟶CNOT​2​1​(∣00⟩+∣10⟩)=∣+⟩∣0⟩⟶H⊗I​=∣00⟩,∣Ψ+⟩⟶CNOT​2​1​(∣01⟩+∣11⟩)=∣+⟩∣1⟩⟶H⊗I​=∣01⟩,∣Φ−⟩⟶CNOT​2​1​(∣00⟩−∣10⟩)=∣−⟩∣0⟩⟶H⊗I​=∣10⟩,∣Ψ−⟩⟶CNOT​2​1​(∣01⟩−∣11⟩)=∣−⟩∣1⟩⟶H⊗I​=∣11⟩.

Last Updated:
Contributors: pingzhihe
Prev
Basic computing and quantum computing Theory
Next
QKD and QFT