Skip to content
QuantumLearn
AI
Learn
Quantum Lab
Coding
Practice
About
Resources
Help Center
Search
Ctrl K
Quantum Coding Lab
Quantum Programming Playground
Write, execute and test Python quantum programs.
Tutorials
Challenges
AI Assistant
PY
main.py
Run
Stop
Save
Examples
Basics
Hello Qubit
Create a single qubit
Measurement
Measure a qubit
Gates
Hadamard Gate
Create a superposition
Pauli-X Gate
Flip a qubit state
Circuits
Bell State
Create entanglement
Three Qubits
Build a 3-qubit circuit
1
2
3
4
5
6
7
8
9
10
11
12
from qiskit import QuantumCircuit # Create a quantum circuit with 2 qubits qc = QuantumCircuit(2) # Create a Bell state qc.h(0) qc.cx(0, 1) # Display the circuit print(qc)
Output
Run your program to see the execution output here.
AI Tutor