Try out some circuit examples

Click on the button below the circuit images to open them in IBM Quantum Composer, where you can run them on systems or simulators, and observe the results. You can also edit the circuits and see how the outcome differs.

Bell test example

The Bell test demonstrates that measurements of an entangled state cannot be explained by any local hidden variable theory, and that there must be correlations that are beyond classical.

A circuit file for a Bell state.

Open in IBM Quantum Composer

Explore the Bell state further in the Entanglement topic, or check out the next example circuit: a GHZ state.

GHZ state example

This circuit creates a GHZ state and then measures all qubits in the standard basis. The measured results should be half 000 and half 111 .

A GHZ state.

Open in IBM Quantum Composer

Read more about GHZ states in the GHZ states section of the Entanglement topic.

Grover’s algorithm example

Here is the full circuit for Grover’s algorithm for the case |w\rangle = |00\rangle :

A circuit file for Grover's algorithm.

Open in IBM Quantum Composer

Learn more in the Grover’s algorithm topic.

W state example

W states are another way to entangle three qubits, and do so differently than GHZ states.

a W state circuit.

Open in IBM Quantum Composer

Read why W states are considered have more robust entanglement than GHZ states in the W states vs. GHZ states section of the Entanglement topic.