T2Quant
Text to Quantum Circuit
Describe a quantum circuit. Get one that works.
Say what the circuit should do, in a sentence. T2Quant writes the Qiskit, runs it, shows the exact state and sampled outcomes, checks the result against the textbook answer, compiles it for a real chip's gates and hands you OpenQASM 3.
How it works
The same three steps every time, and the last one is the one that matters: the chat never describes a result the circuit did not produce.
You describe
"A 4-qubit GHZ state", "teleport RY(π/3)|0⟩ from qubit 0 to qubit 2", "Deutsch-Jozsa with a balanced oracle". Size, roles and what to measure make it better.
It writes and runs
A language model writes a Qiskit 2 script under a strict contract; a sandboxed harness runs it, draws the circuit, computes the exact state, samples shots, and compiles it for the target you picked.
It checks and repairs
Script errors, missing measurements, wrong qubit counts and named states that come out wrong go straight back to the model. The chat ends with a line computed from the run.
What you get on every build
Circuit diagram
Gates, controls, measurements and barriers drawn from the real gate list, plus Qiskit's text drawing.
Exact state and shots
Outcome probabilities and amplitudes from the statevector (up to 20 qubits), sampled counts for any shot count, Bloch vectors per qubit.
Checks
Builds, angles bound, measurements present, entanglement, unitarity, two-qubit gate budget, and textbook answers for named states.
Hardware targets
Ideal; superconducting linear chain or 27-qubit heavy-hex in rz/sx/x/cx; trapped-ion all-to-all in rx/ry/rz/rxx. Depth and SWAP cost before and after.
Plain-English edits
"Add a third qubit entangled with the first." "Measure qubit 1 in the X basis." Every revision is kept in History.
OpenQASM 3
One click, and the file loads in Qiskit, Cirq, Braket and the vendor consoles that run real machines.
Verified starter circuits
Twenty-two circuits you can open instantly, each one run and checked against its known answer before it was shipped. Click to open it in the app.
Is it right?
Every starter is checked against the textbook outcome statistics, on the live site, by a script anyone can run. The last run:
Learn it while you build it
Two short guides: how to make circuits well here, and quantum computing from zero, each with circuits you can run as you read.