Contents

Close

ESEN

← Lab

QUANTA

In progress · Updated

A physical entropy generator, a device that makes randomness out of physical noise, built as open hardware with 2 noise sources, which watches itself and can be questioned from outside.

Fig. 1The QUANTA A-1 board

Drag to turn it.Light 60% · D9 21, D10 18 · K1 and K4 closed

A drawing made from screenshots of the design of the A-1 board, which has not been manufactured yet, with the parts in their relative positions. The emitter light is infrared and is painted visible here. The lids, the motion and the traces belong to the drawing. In the drawing the jitter of the screen trace grows with the square root of the light, as shot noise would, and the relays switch in an invented order so the matrix can be seen.

In 2006 a standards body published, among its recommended random number generators, one called Dual_EC_DRBG. Its structure let whoever chose certain constants predict what would come out, and documents leaked in 2013 indicated that this had been no accident, so in 2014 it was withdrawn. For 8 years, anyone who used it was throwing a die that someone else could read.

Digital security is nearly always born from a random number. Every password and every encrypted connection starts from one, and if that number can be predicted, everything built on top falls down however good the encryption. Today that randomness comes from formulas that only look random or from circuits sealed inside the processor, where you have to take the manufacturer’s word for it, and seen from outside a compromised sequence looks identical to a good one.

QUANTA is my answer to that link zero. It is a physical entropy generator, a device that makes randomness out of physical noise, built on a board that plugs in by USB and draws its numbers from that noise with no formulas involved, and what sets it apart is that it can be checked. The motto I wrote in its technical dossier still holds, “trustworthy systems do not ask for faith, they let themselves be verified”.

The 2 noises and the watchman

The first source is the electrical crackle of transistor junctions pushed to the edge of breakdown, where current fires off in avalanches that cannot be predicted. They are listened to in pairs and subtracted from each other, and the subtraction removes everything they share, drift with temperature, ripple from the supply or a nudge from an attacker, while what belongs to each one survives. The second is the graininess of light, because an LED shines on 2 twin photodiodes, one current is subtracted from the other and what is left is the patter of photons, which arrive loose, one at a time, like rain.

The 2 are combined so that the result is at least as unpredictable as the better of them. If one degrades, or arrives sabotaged from the factory, the output stays good as long as the other holds, and the independence between them is watched all the time.

The entropy sums ask for a little patience, and anyone who would rather skip them only needs to know that QUANTA measures randomness by an attacker’s yardstick and always falls short on purpose.

A source that half the time emits a byte of zeros, a packet of 8 bits, and the other half any byte at all has almost 5 bits of entropy per byte under Shannon’s classic measure, which counts the average surprise, and only 1 bit under the one an attacker cares about, min-entropy, which measures how easy it is to guess by always betting on the most likely outcome. Designing with the first and being attacked with the second is a well-known recipe, so QUANTA always works with the second and never hands out more than half of what it can certify. If quality drops, it narrows the flow or stops, and says so, and what it never does is hand out rubbish dressed up as chance.

On top of both sources runs a watchman program that puts them through the tests of NIST SP 800-90B without a break, the American standard that explains how to check that a noise source is still healthy. Every batch of numbers is sealed and chained to the previous one, like a sewn notebook you cannot tear pages out of, and anyone can check the chain with 4 lines of Python without having the device in front of them. There is also a physical interrogation, in which the user makes up a list of light levels and the device measures its own noise at each one, and if the points fall on the straight line that physics dictates, whose slope carries the charge of the electron, it is shown live that there are real photons in there. It is the same experiment used to weigh the electron in class, put to work as a witness.

Everything is open, the schematics, the board’s internal program (its firmware) and the measurements. It looks like the inside of a good watch. The firmware is called a calibre, the screen is the dial, the single button is the crown and the modes are complications, among them an unbiased die and a passphrase generator that stores nothing.

The book against reality

It all started on paper, with a manufacturing book in 7 parts and a master document. A book like that is a hypothesis, and in July 2026 I put it to a serious test, checking it line by line against electronic simulations, datasheets and recalculations. The audit found promises that physics did not support, such as a pocket enclosure that could not exist, a throughput of 50 kilobits per second its own equations did not allow, a bandwidth above 1 megahertz that the simulation left at 0.52, and a common noise rejection, the ability to cancel what the 2 branches share, that did not hold up with real resistors. It even named as the extractor, the part that distils clean randomness from raw noise, a function that was not the one in the design. The corrections were published as a separate layer in plain sight, without quietly retouching the original, and since then the rule is that reality wins and the book gets corrected.

Until there is a board, the closest thing to a measurement is simulation. I tested the watchman against a statistical twin, a simulation of both sources that fakes faults on demand. When a source gets stuck, the test that watches it fires at 68 bits, which is its cutoff, and the device carries on with the other one alone. When a source is skewed until it gives a one 3 times out of 4, the estimate converges to 0.40 bits per bit, a step away from the 0.415 that theory gives. The longest run turned up a finding about the book itself, because the band that watched the correlation between sources raised a false alarm so often that, in the real device, it would have stopped the service for nothing every 70 seconds. The band is a different one now, and a simulation found it before a user could.

Plot of the simulated voltage on one avalanche branch over 100 microseconds, a noise that wanders inside a shaded tolerance band.

The signal the simulation expects at TP-AVA, the test point of one avalanche branch, with its tolerance band. It is simulated and comes from the draft in the QUANTA electronic simulation bench ↗, built with SPICE (labels in Spanish).

The 5 boards that did not die

The first board, the A-0, got as far as the manufacturing files with every check in green, and it was missing the product, because the screen and the button had no hardware behind them. I cancelled it on 19 July 2026, with the order unpaid. A new check came out of it, the firmware and the schematic watching each other, and the first time it ran it flagged 36 orphan signals.

Top 3D view of the A-0 board, green, with dozens of labelled components, 6 relays in a column in the middle and 3 red parts at the bottom left.

3D render of the A-0, the cancelled board, as it was left in its file. It comes from its files in the repository ↗.

Its successor, the A-1, is both instrument and product, and it inherited 95.9% of the A-0 copper after I checked it against the new schematic. With payment already approved I opened one more audit, because a green light only vouches for what has been looked at, and what needed looking at was what travels to the factory. The manufacturing files were lying, because the program filled the copper planes in memory without saving them, the rule check judged a board that was then discarded and the exporter read a different one. The bottom ground plane was missing entirely and the digital ground was split into 18 islands, so 5 dead boards would have arrived with every inspection photo in green. The main chip had not a single via, one of the holes that connect the layers of the board, under its only ground, and adding 6 brought the simulated ground bounce, the jolt in the reference voltage, down from 220 to 1.4 millivolts. The design rules were written in a syntax the design program did not even read, and I proved it by slipping in an absurd rule on purpose and watching the program raise no objection. The datasheet of a cheap LED gave an efficiency of 102.5%, which is an elegant way of skipping the conservation of energy. All of it came up while the board was still files, where a correction costs a line, whereas with the boards made it would have cost 5 of them.

This stretch is light arithmetic, and if you prefer to pass, all you need to know is that the optical source runs with a tight margin and that the real measurement will decide.

The light source was the most stubborn, because there physics leaves little room. The optical budget, the sum of how much light reaches the photodiodes, matured on paper over 6 versions, each one set aside for a different reason, and the one that remained works, in the central estimate, at 88% of the point where the unit would have to abort, with the worst case brushing zero. The margin is narrow and it is written down as such. I decided to build it as it stands and let the real measurement decide, with 3 outcomes written in advance, that the light is enough, that it can be measured but falls short, or that there is no signal and that source is declared dead in that unit.

At the end of July the design was closed and audited. Everything up to here is simulations, software benches and sums on paper, and there is still no physical measurement. What is missing is the only thing that can say no, the real board, in the cold at about 10 degrees and in the heat at about 40, giving at least 0.3 bits of min-entropy per bit from each source. If it does not, that will show then, which is when it should.

Log

  1. · A-1, in progress

    Ready to manufacture

    I closed the A-1 design after a last round of audits before payment, which caught in time defects able to leave all 5 boards useless. There is still no physical measurement, and what comes next is building it and testing it in the cold and in the heat.

  2. · A-1, done, replaces the A-0

    Instrument and product

    I designed the A-1, which is both instrument and product, on 95.9% of the A-0 copper, checked first against the new schematic. The firmware and the schematic now watch each other, so that no screen and no button can be left without hardware behind it.

  3. · A-0, cancelled

    The A-0 goes to the archive

    The A-0 reached the manufacturing files with every check in green, although the screen and the button had no hardware behind them. I cancelled it before paying for the order and its copper went to its successor.

  4. · done

    The book against reality

    I checked the manufacturing book against simulations, datasheets and recalculations, and the audit turned up promises that physics did not support, from an impossible pocket enclosure to a throughput the book itself could not deliver. I published the corrections as a separate layer, without touching the original.

  5. · done

    The watchman against its twin

    Before there was any board I wrote the program that watches the sources and tested it against a statistical twin, a simulation that fakes faults on demand, so everything that came out of it is simulation.

  6. Date pending · done

    It all started on paper

    I started from a manufacturing book in 7 parts, plus a master document, with the complete design of the instrument.

Links