Initial Three-Qubit State

Select a pre-defined initial state for your three-qubit system. This system has $2^3 = 8$ basis states:

$|000\rangle, |001\rangle, |010\rangle, |011\rangle, |100\rangle, |101\rangle, |110\rangle, |111\rangle$

The sum of the squares of the magnitudes of all amplitudes must be 1.

Apply Toffoli (CCNOT) Gate

The **Toffoli (CCNOT) gate** is a three-qubit gate. It flips the **target qubit** only if **both control qubits are $|1\rangle$**.

This gate is universal for classical computation and crucial for quantum algorithms.

Quantum Circuit Diagram

Qubit 1: |0> --- Qubit 2: |0> --- Qubit 3: |0> ---

Resulting Three-Qubit State

Complex Amplitudes:

Measurement Probabilities:

The **complex amplitudes** show the full quantum state, including phase information crucial for entanglement.

The **measurement probabilities** tell you the likelihood of observing each classical outcome when you measure the qubits.

3D Probability Visualization:

This interactive 3D bar chart visualizes the quantum state of your three qubits. It helps you understand how the probabilities and phases of different measurement outcomes change as you apply quantum gates.

  • The **height of each bar** shows the **probability** of measuring that specific three-qubit state (e.g., $|000\rangle, |001\rangle, \dots, |111\rangle$). A taller bar means a higher chance of that outcome.
  • The **color of each bar** represents the **phase** of the complex amplitude for that state. Phases are crucial for quantum phenomena like interference and entanglement.
  • **Interact:** Click and drag to **rotate** the visualization. Use your mouse scroll wheel to **zoom** in and out.