From Prompt to Circuit: How a Plain-English Question Becomes a Quantum Job
A step-by-step look at how qnt.ai turns a plain-English question into a quantum circuit, runs it, and explains the result in your terms.
Most people who could benefit from quantum computing will never write a quantum circuit by hand. They shouldn't have to. Nobody writes assembly to send an email, and nobody should need to learn gate algebra to ask whether a hard optimization problem has a better answer.
At qnt.ai, the job of the AI models you already use is to sit between your question and the machine. Here is what happens, step by step, when you type a question.
Step 1: Understanding the question
The first thing the model does is figure out what kind of problem you've asked. Some questions are a natural fit for quantum methods:
- Optimization – scheduling, routing, portfolio selection, picking the best combination out of many.
- Sampling – drawing from probability distributions that are expensive to simulate classically.
- Simulation – modelling molecules, materials and other systems that are quantum by nature.
Plenty of questions are not a good fit, and an honest system should say so. If a spreadsheet or a classical solver will answer faster and cheaper, that's the right answer.
Step 2: Choosing an approach
Once the problem type is clear, the model maps it to a known family of quantum algorithms:
- QAOA (Quantum Approximate Optimization Algorithm) for combinatorial optimization.
- Grover-style search for finding marked items in an unstructured space.
- Variational methods for estimating energies in chemistry and physics.
- Entanglement demos like Bell and GHZ states, for learning and calibration.
This step matters. The algorithm determines how many qubits you need, how deep the circuit gets, and how much noise it can tolerate.
Step 3: Writing the circuit
Next, the model writes the circuit itself in OpenQASM, a standard text format for quantum programs. A simple two-qubit Bell state looks like this:
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
bit[2] c;
h q[0];
cx q[0], q[1];
c = measure q;
A Hadamard gate puts the first qubit in superposition, a CNOT entangles it with the second, and both are measured. Run it many times and you should see 00 and 11 about half the time each, and almost never 01 or 10.
Real problems produce longer circuits, but the idea is the same: a precise, checkable program generated from your words.
Step 4: Fitting the machine
Every quantum device supports only a small set of native gates and has a fixed layout of which qubits can talk to each other. A circuit written in friendly, high-level gates has to be translated, or transpiled, into that native set and routed onto the physical layout.
Good transpilation keeps circuits short. Shorter circuits mean less time for noise to creep in, which means more trustworthy results.
Step 5: Running it
Today, jobs run on a high-fidelity simulator, a classical program that reproduces quantum behaviour exactly for small circuits. It lets us check every step of the pipeline end to end. Quantum hardware is next. The same circuits, transpiled for real devices, will run on real qubits as access opens up.
The circuit runs many times, called shots, because quantum measurement is probabilistic. The output is a histogram of counts: how often each bitstring appeared.
Step 6: Reading the result back
A histogram of bitstrings isn't an answer. The last step turns counts back into your terms: which schedule came out best, how confident we are, what the distribution says, and what the result does and doesn't prove. This is where AI shines again, explaining the result in plain language and pointing out caveats.
What's honest about this today
Quantum computing is real, but it's early.
- Problem size is limited. Useful circuits on today's devices are small.
- Noise is real. Hardware results need error mitigation and careful reading.
- Advantage is narrow. For most everyday problems, classical methods still win.
Our goal isn't to oversell. It's to make the path from question to circuit to answer short enough that anyone can explore what quantum methods can do, and to be ready as the hardware improves.
Try it
We're opening qnt.ai to early users. If you have a problem you'd like to put through this pipeline, request early access and tell us about it.