Definition: Entanglement is a quantum mechanical phenomenon in which the quantum states of two or more objects are linked together, even when the objects are separated by a large distance.
uwu-gg / Intro to Quantum Computing Cheatsheet
Intro to Quantum Computing Cheatsheet
A comprehensive cheat sheet covering key concepts in quantum computing, including entanglement, quantum gates, algorithms, and the Bloch sphere.
Entanglement and Global Phase
Quantum Entanglement Basics
|
Key Properties:
|
Mathematical Representation: A typical entangled state (Bell state) is represented as: |
Global Phase: A global phase is a complex number e^{i\theta} that multiplies an entire quantum state. It does not affect measurement probabilities, hence is physically irrelevant. |
Example: |
Importance: While global phase doesn’t affect single qubit measurements, relative phases between terms in a superposition are crucial for quantum interference and computation. |
Pure vs. Mixed States
Pure State: |
A qubit state that can be represented by a single point on the Bloch sphere. |
Mixed State: |
A statistical ensemble of pure states, represented by a density matrix. Lies inside the Bloch sphere. |
Quantum Gates and Circuits
Single-Qubit Gates
Pauli Gates:
|
Hadamard Gate (H): Creates superposition. |
Phase Gate (S): Applies a phase of i to the |1\rangle state. |
T Gate: Applies a phase of e^{i\pi/4} to the |1\rangle state. |
Two-Qubit Gates
CNOT (Controlled-NOT): Flips the target qubit if the control qubit is |1\rangle. |
SWAP Gate: Swaps the states of two qubits. |
Quantum Entangling Circuits
Creating a Bell State:
|
No-Cloning, Teleportation, Swapping
No-Cloning Theorem
Statement: It is impossible to create an identical copy of an arbitrary unknown quantum state. |
Implication: Prevents perfect copying of quantum information, which is crucial for quantum cryptography. |
Quantum Teleportation
Process: Transferring a quantum state from one location to another using entanglement and classical communication. |
Steps:
|
Key Points:
|
Entanglement Swapping
Definition: A process by which two qubits that do not initially share entanglement can become entangled. |
Process:
|
Use-case: Can extend quantum communication distances by creating entanglement between distant qubits. |
Quantum Algorithms
Deutsch Algorithm
Purpose: Determines whether a function f(x) is constant or balanced. |
Algorithm:
|
Quantum Oracle: A black box that implements the function f(x). |
Advantage: Solves the problem with one query to the function, while a classical algorithm requires two. |
Grover's Algorithm
Purpose: Searches an unsorted database of N items in O(\sqrt{N}) time. |
Algorithm:
|
Grover Iteration: R = -H U_0 H U_f, where:
|
Advantage: Provides a quadratic speedup over classical search algorithms. |
Quantum Fourier Transform (QFT)
Definition: A quantum version of the Discrete Fourier Transform (DFT). |
N-th Root of Unity: \omega_N = e^{2\pi i / N} |
QFT Transformation: |
Applications: Used in Shor’s algorithm for factoring and in quantum phase estimation. |
Bloch Sphere
Bloch Sphere Representation
Definition: A geometrical representation of a qubit’s state as a point on the surface of a unit sphere. |
General Qubit State: |
Coordinates:
|
Mapping to Sphere: |
Visualizing Gates on the Bloch Sphere
X Gate: Rotation by \pi around the x-axis. |
Y Gate: Rotation by \pi around the y-axis. |
Z Gate: Rotation by \pi around the z-axis. |
Hadamard Gate: Rotation that maps |0\rangle to \frac{|0\rangle + |1\rangle}{\sqrt{2}} and |1\rangle to \frac{|0\rangle - |1\rangle}{\sqrt{2}}. |