No maths required

Start here

This page explains QHoTT to someone who has never written a proof and does not want to start now. There is no maths you have to follow. Everything below is a button you can press, and every number on the page was computed by the real engine while you were loading it — nothing here is a screenshot or a mock-up.


1. What a proof is, and why "checked by a machine" is a different thing

Forget the word "proof" for a second. Think about a receipt.

If a shop tells you "you paid the right amount, trust me", you have a social fact. If the shop hands you an itemised receipt and you add the numbers up yourself, you have something better: you no longer need to trust the shop at all, because you can re-do the check. The receipt did not make the shop honest. It made honesty unnecessary.

A mathematical proof is that itemised receipt for an idea. It is a chain of steps so small and so explicit that following it requires no judgement, no expertise and no good faith. And once the steps are that small, you do not need a human to follow them — a machine can, and a machine is not tired, not senior, and not invested in the answer.

That is the only trick in this entire project. Replace "a clever person says so" with "a dumb machine checked every step". Here is one doing it:

The claim, and a machine that does not care who made it

Someone hands you fifteen instructions and says "trust me, this does the same thing as a single Toffoli gate". It looks right. It is the textbook decomposition. Press the button to change one of the fifteen instructions, the way a tired engineer would at 2am.

currently: the textbook circuit

[PASS] U†U = I [PASS] U = V (V = CCX) VERDICT VERIFIED

Notice that the broken circuit is still unitary. It is a perfectly legal quantum circuit. It just is not the one that was promised. A sanity check on probabilities would wave it through; only comparing the whole thing catches it, and the machine hands you the exact entry where the promise breaks.

Three things are worth noticing. The machine did not ask who wrote the circuit. It did not get it slightly wrong and round up. And when it refused, it told you exactly where the lie was, down to the single entry in a table of 64. That is the difference between an opinion and a check.


2. Approximately right versus exactly right

Here is the metaphor. Imagine measuring a plank with a tape measure. You get "1.4 metres, give or take a millimetre". Useful for building a shelf. Now imagine someone asks you whether two planks are identical. Your tape measure physically cannot answer that. It can tell you they agree to within a millimetre. It can never tell you they are the same.

Now imagine the planks came with a recipe instead: "cut at the 7th notch", "cut at the 7th notch". Suddenly the question is trivially answerable, exactly, forever, because you are comparing recipes rather than measurements.

Normal quantum software uses the tape measure. QHoTT uses the recipe. Here is both, side by side, computed on this page:

Part one: the warm-up everyone can check

Open any browser console and type 0.1 + 0.2. Here is what this page gets when it actually runs it:

> 0.1 + 0.2 0.30000000000000004 > (0.1 + 0.2).toFixed(20) 0.30000000000000004441 > 0.1 + 0.2 === 0.3 false > Math.abs((0.1 + 0.2) - 0.3) 5.551115123125783e-17

Nothing is broken. Computers store numbers in binary, 0.1 has no exact binary form in the same way 1/3 has no exact decimal form, and the tiny error is the honest consequence. Every scientific program on earth lives with this.

The problem is what it does to questions that have a yes or no answer. You cannot ask "are these equal?" any more. You can only ask "are these close?", and then you have to pick how close counts, and that number is a judgement call you are now responsible for.

Part two: the same problem, in a quantum circuit

The T gate rotates by an eighth of a turn. Do it eight times and you are back exactly where you started, so eight T gates in a row should be nothing at all. Here is a normal floating point simulator doing it:

Floating point simulator
after 8 T gates the amplitude should be exactly 1 + 0i got 1 + -6.661338147750939e-16i distance from 1 6.661338147750939e-16 is it the identity? "within about 6.7e-16, yes, probably"

And here is the QHoTT verifier, running right now on this page, doing the same thing:

QHoTT exact verifier
ring Z[omega][1/sqrt(2)], omega = e^(i*pi/4) T acts by multiplying by omega, stored as integers omega^8 = 1 is a rewrite rule, not a calculation [PASS] U = I VERDICT VERIFIED (no tolerance was used, because there is nowhere to put one)

That is the whole project in one screen. The top box gives you a number you have to interpret. The bottom box gives you an answer. QHoTT never produces the top box.

The way this works is not magic and it is not a trick. It turns out that the particular set of quantum operations QHoTT handles — the Clifford+T set, which is the standard one that real fault-tolerant hardware is built around — only ever produces numbers of one specific shape: whole numbers combined with a fixed handful of rotations and divisions by the square root of two. So instead of storing a decimal, QHoTT stores the whole numbers, and all the arithmetic is integer arithmetic, which computers do perfectly.

The technical name for the structure is the cyclotomic ring Z[omega][1/sqrt(2)]. The documentation explains it properly, but you do not need it: the takeaway is that an entire class of "is it close enough?" questions got replaced by "is it the same whole number?".


3. What a quantum circuit actually is

A normal computer program is a list of instructions operating on bits, and each bit is either 0 or 1. A quantum circuit is also a list of instructions, operating on wires — but a wire is allowed to be in a blend of 0 and 1 until you look at it.

The useful metaphor is a spinning coin, not a hidden coin. A hidden coin is already heads or tails and you merely do not know which. A spinning coin is genuinely neither yet. The instructions in a quantum circuit spin coins, tilt them, and — this is the important one — link them together so that when one lands the other is forced to match.

A circuit is just that list of instructions. It is a recipe. QHoTT's job is to answer the question "does this recipe produce exactly the machine the author claimed?" Build one yourself:

Build a two wire machine

Two wires, both starting at 0. Each button adds one instruction. The table underneath is the complete list of outcomes you could get if you looked at the wires, and how likely each one is.

What each button means. H is the coin flip: a wire that was definitely 0 becomes "0 and 1 at once, in equal measure". X is a plain flip, 0 becomes 1. Z does nothing you can see on its own, but it matters later. CX is the interesting one: it ties two wires together, so flipping the first flips the second.

qubits 2 h 0 cx 0 1
outcomeexact amplitudechancehow likely
001/sqrt(2)50.0%####################
0100.0%.
1000.0%.
111/sqrt(2)50.0%####################

Try H then CX. You get a 50/50 chance of 00 or 11, and never 01 or 10. The two wires always agree, even though neither one was decided in advance. That is entanglement, and it is why these machines are worth building and worth checking.

Look at the amplitude column. It says 1/sqrt(2), not 0.70710678. That is the real stored value, not a rounded display of one.

Why does anyone need this checked? Because quantum hardware cannot run most instructions directly. A compiler has to rewrite your recipe into one the machine supports, and that rewrite can have a bug. The fifteen instruction circuit in section 1 is such a rewrite. Nobody can eyeball whether it is right. A machine can settle it in under a millisecond.


4. What the Proof Explorer does

The circuit verifier answers questions about quantum machines. The Proof Explorer answers questions about mathematics itself, using the same philosophy: write the argument in a language precise enough that a machine can check every step.

The metaphor here is a pedantic lawyer who has no idea what any of the words mean. They will not let you write "obviously" or "similarly" or "it follows that". Every single step has to be justified by a rule from a very short list. It is infuriating. It is also why the result is trustworthy: if the lawyer signs off, the only way the conclusion is wrong is if one of the handful of rules was wrong, and those have been stared at by the entire field for fifty years.

A proof checker, in twelve words of input

The statement below says "two plus two equals four", written in the language the kernel understands. Id Nat a b is the claim that a and b are the same natural number, and refl is the only way to assert it directly. Switch the four to a five and watch.

def twoAndTwo : Id Nat (add 2 2) 4 := refl Nat 4
[PASS] twoAndTwo the kernel accepted it

No one configured the kernel to know that 2 + 2 is 4. It worked it out by unfolding the definition of addition and reducing both sides to a numeral. When the two sides do not match, it says so and names what it found. You cannot argue with it, out-vote it, or be senior enough to overrule it.

The explorer does this for real theorems, not just arithmetic. The deep idea behind the "HoTT" in QHoTT is that if you squint, a type behaves like a space: the things of that type are points in it, and a proof that two things are equal is a path between those two points. Reversing a path gives you symmetry. Joining two paths gives you transitivity. Nobody adds those as rules — they fall out, because that is what paths do.

Open the Proof Explorer to run the full library of path lemmas, see their normal forms, and see the one lemma in the whole prelude that needs an axiom (and why).


5. What goes on Solana, and what absolutely does not

This is the section to read twice, because it is where most crypto projects would lie to you and we are not going to.

What actually gets written to Solana

The chain does not store your circuit, your proof or your explanation. It stores a fingerprint: 32 bytes that are easy to compute from the artifact and effectively impossible to forge a second artifact for. Edit the two things below and watch which one the fingerprint notices.

The human label (prose, not maths)

circuit qubits 2 h 0 cx 0 1 label our beautiful Bell pair fingerprint written to Solana computing...

Type anything you like in the label and the fingerprint does not move, because wording is not mathematics and rewording a description must never invalidate a registered result. Tick the checkbox and the fingerprint changes completely, because the circuit did.

And here is the part most crypto projects get wrong. Solana never checked any of this. It cannot run the verifier. All it does is record that this fingerprint was submitted, by whom, and when — permanently, first come first served. The verification happened in your browser. Anyone who doubts the record can re-run it in theirs and compare the 32 bytes.

Stated as plainly as possible:

The blockchain DOESThe blockchain DOES NOT
Store a 32 byte fingerprint of a verification result.Verify anything. It never runs the verifier and could not afford to.
Record who submitted it and when, permanently.Make a false result true, or a true result truer.
Guarantee the same artifact can only be claimed once, by whoever got there first.Know what the artifact says. It only sees the fingerprint.
Refuse any submission whose recorded verdict is not "verified".Catch someone who verified the wrong thing correctly.

So what is the chain actually for? Provenance and priority. Mathematics has a real and very old problem of who proved what first, and a real problem of results that cannot be reproduced. A public, timestamped, tamper-evident ledger of "this exact artifact existed at this moment and this person put their name on it" is a genuinely useful thing, and it is a thing blockchains are actually good at. We use it for that and nothing more.

Honest status: the program is written and compiles, but is not deployed yet, and the token has not launched. The registry page will tell you the live state and degrade gracefully rather than pretending.


6. Where the token fits

$QHOTT is the usage layer. Writing to the registry requires holding some, which does three unglamorous things: it keeps the registry from being spammed into uselessness, it gives people who fund verification work a claim on the thing being produced, and it pays for the research.

Here is what it explicitly does not do, and we would rather say it ourselves:

The honest pitch is the boring one: there is a real verification engine here, it is useful, it is checkable by you personally in your own browser, and the token is how the thing gets funded and how the registry stays meaningful. The Research Finance page makes the longer argument, including what is aspiration and what is already built.


Where to go next