Python Quantum Playground
Run Python in your browser with NumPy preloaded. No installation, no signup. Build quantum gate matrices, simulate small circuits, and verify identities like HXH = Z. Powered by Pyodide.
Tip. Press Ctrl+Enter in the editor to run. NumPy is preloaded; importing other packages will fetch them on demand. Qiskit itself is not available in Pyodide; use NumPy for matrix-based circuit work.
What can you do here?
The Pyodide runtime ships full Python plus NumPy in your browser. That's enough for serious quantum circuit work via matrix multiplication: build gate matrices, tensor them with np.kron, multiply state vectors, and inspect amplitudes.
Heavier libraries like Qiskit Aer, PennyLane, or Cirq don't yet have WebAssembly builds, so they won't import here. For framework-specific code, copy snippets from our tutorials and run them on Colab or your local machine.
Examples to try: load the "Verify HXH = Z" preset to see a basic gate identity, or "CNOT permutation matrix" to inspect the 4x4 unitary that defines the Controlled-NOT gate. For interactive circuit building without code, use our circuit builder.