What you’re watching
Everything in the scene is driven by one live simulation. The 3D machine on the left is a quantum computer; the desk in front of it mirrors the same run on a screen, with a cat doing the typing; the panel in the corner is a fruit-fly brain lighting up in step with the maths.
- The quantum computerA dilution-fridge stack cools 8 working qubits plus one helper. Control pulses race down the wires on every gate, and each qubit glows brighter as it becomes more likely to read 1.
- The amplitude fieldA 16×16 grid of bars, one per possible input. Bar height is how strongly the machine currently favours that input; colliding inputs turn gold, and bars that dip below the line carry a negative phase.
- The cat and the screenThe cat types the attack into a blue terminal that shows the same run — gates, qubits, the live trace and a collision bar. When a collision lands, it throws its paws up.
- The fly brainA stylised Drosophila brain of ~5,500 model neurons, grouped into optic lobes, central brain, mushroom bodies, antennal lobes and central complex. Each step of the search sets off a spike cascade in a different region.
The brain is driving the cat
The cat isn’t animated on its own — it’s wired to the fly brain. Each region’s spikes are fed to a different part of the cat’s body, so what you watch it do is the brain’s activity made physical. The meters in the brain panel are the same signals that move the muscles.
- Optic lobes → the headVision aims the gaze: the busier the optic lobes, the more often the head darts between the screen and its own paws.
- Central brain → the pawsSets the typing pace. When the central brain lights up, the paws strike the keys faster.
- Central complex → the tailIn a real fly this region governs orientation and balance; here it drives how hard the tail sways.
- Antennal lobes → ears & whiskersThe smell centres flick the ears and twitch the whiskers whenever they fire.
- Mushroom bodies → the celebrationThe brain’s learning and reward centres; they bounce the paws when a collision lands and the whole brain lights gold.
So the chain runs end to end: a gate in the quantum search stimulates a region, the region’s neurons spike, and a moment later the matching muscle moves. Watch a burst cross the brain panel and you’ll see the cat answer it.
How the search works
A collision means two different inputs with the same hash. The machine runs a quantum collision search — Brassard–Høyer–Tapp, built on Grover’s algorithm. In plain terms:
- Spread out. A Hadamard on every qubit puts the register into an equal mix of all 256 inputs at once.
- Mark the hits. The oracle runs reduced-round SHA-256 on the whole superposition and flips the phase of any input whose hash matches an entry in a small reference table.
- Reflect. A diffusion step reflects every amplitude about the average (the gold plane), nudging the marked inputs up. Mark-and-reflect repeats a handful of times.
- Measure & check. The register collapses to one input, and one ordinary hash call confirms whether it really collides. Autopilot then climbs a round and starts again.
Under the hood
A quick look at how it works.
Computed live, in your browser. Every amplitude on screen is a 256-state quantum state vector evaluated in JavaScript, step by step — reload and it runs fresh.
Real SHA-256. The hashing is the genuine algorithm and reproduces the official FIPS 180-4 test vectors (the hash of “abc”, and so on), so the digests on screen are the real thing.
Grover-based collision search. It marks the inputs whose hashes match, amplifies them with diffusion, and measures — the core of a quantum collision attack, animated gate by gate.
Built with three.js, and open. The 3D rig, the fly brain and the console are all one self-contained HTML file you’re free to read top to bottom.
About HashSmash
The visual is a nod to HashSmash, an open competition from Eigen Labs and Shielded Labs where people work with AI models to find cheaper collision attacks on reduced-round SHA-256, SHA-3 and BLAKE3, scored by estimated attack cost. This page is a tribute to that work.