ProductBlogAlgorithmsAboutSign inSign up

Quick Examples

Twelve Quick Quantum Circuit Examples

Learn twelve quantum circuits with expected results, limitations, and downloadable OpenQASM, Qiskit, Cirq, PennyLane, and Marqov variants.

Start in the Run editor

  1. Save existing work, then open Marqov and sign in if required.
  2. Choose an example and framework from the Examples submenu.
  3. Inspect the code. Click Run, select an available browser simulator, then click Run in browser.
  4. Compare the result with the entry's expected behavior and wire assignments.

Open Run in Marqov →

This link opens the editor. Choose the example in its dropdown. Selecting an example replaces the editor contents.

Choose a concept

Beginner

Bell State

Prepare a two-qubit Bell state.

Beginner

Superposition

Prepare three independent qubits in equal superposition.

Beginner

GHZ State

Prepare a three-qubit GHZ state.

Beginner

Quantum Coin Flip

Sample a balanced one-qubit distribution in a simulator.

Intermediate

Quantum Teleportation

Explore coherent state transfer with deferred measurement.

Intermediate

Deutsch-Jozsa

Identify the fixed balanced oracle f(x)=x.

Intermediate

Bernstein-Vazirani

Recover the fixed hidden string 101.

Intermediate

Quantum Fourier Transform

Apply a three-qubit Fourier transform to the fixed input |101>.

Advanced

Grover's Search

Explore one amplitude-amplification round on two qubits.

Advanced

Fixed-Angle Ansatz

Prepare a two-qubit ansatz at fixed angles.

Advanced

Phase Estimation

Estimate the T-gate eigenphase 1/8 with three counting wires.

Advanced

Fixed Mixed-Gate Circuit

Inspect one fixed five-qubit circuit containing mixed gates.

Interpret the result

Browser strings show the full qubit register in wire order, with q0 on the left. Auxiliary wires can appear even when a native program measures only its input register. Each entry explains which bits contain its answer. Native framework displays may have a different register width or bit order.

Finite-shot frequencies fluctuate for nondeterministic distributions. An ideal outcome with probability 100% has no finite-shot variation; hardware noise is a separate effect. A histogram alone cannot establish relative phases or entanglement.

Know what you are running

Browser execution translates supported circuit-building snippets into OpenQASM. It does not run general Python code. Available destinations and limits are described in the Playground guide.

The Fixed-Angle Ansatz prepares a state; it does not calculate a molecular energy or optimize parameters. Quantum Coin Flip uses the simulator's software pseudorandomness. The Fixed Mixed-Gate Circuit has a fixed gate sequence and does not generate new random circuits.

Read the complete example guide →

Continue into the research

To investigate a published result, explore Research Replications. Read the scope and evidence for the specific experiment before treating a small demo as a reproduction of a paper.

Build a longer learning workflow

Continue with QAOA, H₂ VQE and Hamiltonian simulation tutorials. They add local parameter search, energy measurement or time-evolution analysis. They are website tutorials with downloadable code, not extra entries in the editor’s twelve-example dropdown.