Quantum Computing - Linear Algebra: Tensor Products

Objectives: Quantum Computing - Linear Algebra: Tensor Products

Quantum Computing - Linear Algebra: Tensor Products

Linear Algebra for Quantum Computing

Tensor Products (Multi-Qubit Systems)

In quantum computing, a single qubit is represented by a 2-dimensional vector. To represent multiple qubits together, we use the tensor product. This allows us to combine qubits into a single system where all quantum states are considered simultaneously.

---

1. Definition of Tensor Product

If |ψ⟩ is a vector of dimension m and |Ο†βŸ© is a vector of dimension n, their tensor product |ψ⟩ βŠ— |Ο†βŸ© is a vector of dimension m Γ— n:

|ψ⟩ = [ψ1]
       [ψ2]

|Ο†βŸ© = [Ο†1]
       [Ο†2]

|ψ⟩ βŠ— |Ο†βŸ© = [ψ1*Ο†1]
             [ψ1*Ο†2]
             [ψ2*Ο†1]
             [ψ2*Ο†2]
  • βŠ— = tensor product symbol
  • ψi, Ο†i = components of vectors |ψ⟩ and |Ο†βŸ©
πŸ’‘ Real-life analogy: Think of combining two dice. Each die has 6 possible outcomes. Together, the two dice have 6 Γ— 6 = 36 possible outcomes. Tensor products expand the β€œpossibility space” of quantum systems similarly. ---

2. Example: Two Qubits

|0⟩ = [1]
       [0]

|1⟩ = [0]
       [1]

Two-qubit system: |0⟩ βŠ— |1⟩

|0⟩ βŠ— |1⟩ = [1*0]
             [1*1]
             [0*0]
             [0*1]
           = [0]
             [1]
             [0]
             [0]

This vector represents a 2-qubit system where the first qubit is |0⟩ and the second qubit is |1⟩.

πŸ’‘ Real-life analogy: Imagine two light switches. Each switch has ON (1) or OFF (0). The combined system has 4 states: 00, 01, 10, 11. Tensor product gives the combined state vector. ---

3. Generalization to n Qubits

For n qubits, each with 2 states, the tensor product produces a vector of dimension 2ⁿ. For example:

Three qubits: |ψ1⟩ βŠ— |ψ2⟩ βŠ— |ψ3⟩ β†’ 2^3 = 8-dimensional vector

πŸ’‘ Real-life analogy: If you have 3 coins, each with 2 outcomes (heads or tails), the combined system has 2Β³ = 8 possible outcomes. Tensor product enumerates all possibilities in a single vector.

---

4. Properties of Tensor Products

  • Associativity: |ψ⟩ βŠ— (|Ο†βŸ© βŠ— |Ο‡βŸ©) = (|ψ⟩ βŠ— |Ο†βŸ©) βŠ— |Ο‡βŸ©
  • Distributivity over addition: |ψ⟩ βŠ— (|Ο†βŸ© + |Ο‡βŸ©) = |ψ⟩ βŠ— |Ο†βŸ© + |ψ⟩ βŠ— |Ο‡βŸ©
  • Scalar multiplication: c(|ψ⟩ βŠ— |Ο†βŸ©) = (c|ψ⟩) βŠ— |Ο†βŸ© = |ψ⟩ βŠ— (c|Ο†βŸ©)
---

5. Tensor Products and Quantum Gates

Tensor products are used to apply quantum gates to multi-qubit systems:

If X is a gate acting on qubit 1:

X βŠ— I acts on a 2-qubit system:
|ψ⟩ = α|00⟩ + β|01⟩ + γ|10⟩ + δ|11⟩
  • I = identity gate (does nothing on second qubit)
  • Tensor product ensures the gate acts only on the intended qubit while leaving others unchanged.
πŸ’‘ Real-life analogy: Think of pressing a button on one of two connected machines. The button only affects the machine you press; the tensor product keeps the other unaffected. ---

6. Entanglement and Tensor Products

Some multi-qubit states cannot be written as simple tensor products. These are called entangled states.

Example: Bell state
|Φ+⟩ = 1/√2 (|00⟩ + |11⟩)
  • This state cannot be factored into |ψ⟩ βŠ— |Ο†βŸ©
  • Measurement of one qubit instantly determines the other
πŸ’‘ Real-life analogy: Imagine a pair of magic dice: when one shows 6, the other automatically shows 6. They are β€œlinked” even if separated β€” that is entanglement. ---

7. Repeated Tensor Products

To represent n qubits all in |0⟩ state:

|0⟩ βŠ— |0⟩ βŠ— ... βŠ— |0⟩ = |00...0⟩ (dimension 2^n)

πŸ’‘ Real-life analogy: A line of light switches all turned OFF. Tensor product allows describing all switches together in one vector.

---

8. Summary of Key Terms

  • Tensor Product βŠ—: Combines two vectors into a higher-dimensional vector representing multi-qubit systems.
  • Multi-qubit system: A quantum system with two or more qubits combined via tensor product.
  • Entanglement: Multi-qubit states that cannot be separated into individual tensor products.
  • Dimension: Two qubits β†’ 4-dim vector, Three qubits β†’ 8-dim vector, n qubits β†’ 2ⁿ-dim vector.
  • Application: Used in multi-qubit gates, quantum circuits, and modeling complex quantum systems.

Tensor products are essential to describe all possible combinations of qubits, apply multi-qubit gates, and understand entanglement in quantum algorithms.

Reference Book: N/A

Author name: MWALA_LEARN Work email: biasharabora12@gmail.com
#MWALA_LEARN Powered by MwalaJS #https://mwalajs.biasharabora.com
#https://educenter.biasharabora.com

:: 1::

β¬… ➑