Posts

Showing posts from March, 2026

Screenshotting 100 SVGs to PNGs with headless Chrome on Windows

Image
We had 100 SVG artworks generated by quantum computers, and we needed PNGs to put on IPFS. SVG support across NFT platforms and wallets is inconsistent enough that we didn't want to rely on it, so the vector files had to become raster files. On Linux or macOS you'd type cairosvg.svg2png(...) and be done in five minutes. We were on Windows. It took considerably longer than that, and most of the "obvious" solutions quietly destroyed our art before I found one that worked: pointing headless Chrome at each SVG and taking a screenshot. The core problem SVG is XML, and converting it to PNG requires a real SVG rendering engine — something that parses the markup, executes gradient definitions, applies filters, composites layers, and only then emits pixels. That's the whole job, and the Python ecosystem's default tool for it is cairosvg , which wraps the Cairo 2D library: # This works beautifully on Linux and macOS import cairosvg cairosvg.svg2png(url="input...

Quantum supremacy in 2026 — a reality check from someone who ran real circuits

Image
I've spent real time with two of the most advanced quantum computers that are actually reachable over the internet: IBM's ibm_fez (156 qubits) and Origin Quantum's WK_C180 (180 qubits). We used both to generate the artwork for Quantum Genesis — running real circuits, collecting real measurement data, and turning quantum noise into abstract art. That hands-on time gives a different view of the field than most press releases do. This is that view: what "quantum supremacy" actually claims, where the hardware genuinely stands in 2026, what a developer can actually run today, and what I found running identical circuits on both platforms. What "quantum supremacy" really claims The term, coined by John Preskill in 2012, is narrow and specific. It means a quantum computer has performed a computation that no classical computer can do in a reasonable time. Not "could theoretically", but actually did it, with verifiable results. It doesn't mean...

Writing a secure ERC-721 contract from scratch, without OpenZeppelin

Image
When we started Quantum Genesis I made a call most people would talk me out of: no OpenZeppelin. Not because it is bad — it is the opposite, audited and battle-tested — but because this collection had a very specific shape. Fixed supply of 100, minted only by the deployer, no marketplace features, no upgrades. Inheriting the full OZ stack for that felt like pulling in a library to flip one switch. So we wrote the Solidity ourselves. This post goes through the contract decision by decision: why we skipped the library, the custom-error tradeoff, access control, reentrancy, the ERC-721 core, EIP-2981 royalties, batch minting, and one limitation I would fix if I were deploying again. The Solidity snippets below are simplified sketches, not the deployed source; the on-chain values are checked against the live contract at 0x488fCfaEA5fDf1cF6BAED5e8A34D7858033E1a27 on Polygon. One honest caveat up front: for a contract holding significant value, OpenZeppelin is the safer bet, full stop. Th...

Quantum Error Correction, or Why Your Qubits Forget What They Were Doing

Image
Every time I ran a circuit on IBM's ibm_fez to generate art for the Quantum Genesis collection, the results were never perfectly clean. There was always noise. Errors crept into every measurement, every gate operation, every qubit interaction. Most people read that as a problem. I turned it into the whole point of the project. But before I could appreciate the noise, I had to understand what it actually is. Quantum computers leak information. They forget. They are not like your laptop, where a bit stays a bit until you tell it otherwise. A qubit is a fragile thing, and the whole industry is spending enormous effort just trying to keep one honest. This post is about how that works — the error correction codes, why the naive "copy it three times" trick fails, and where the field actually stands today. Why qubits fail A classical bit stored as a voltage in a transistor stays 0 or 1 reliably as long as the circuit has power. Copy it a billion times and it won't deg...

The Art Hidden in Quantum Noise: Why Decoherence Is the Medium

Image
Every quantum computer is in a war with the universe. The moment you prepare a qubit in superposition, balanced between 0 and 1, the environment begins to intrude: stray photons, thermal vibrations, electromagnetic noise from a cable three metres away. The qubit starts to forget what it was supposed to be. Physicists call this decoherence. Two timescales define the decay. T1 is the energy relaxation time — how long before an excited qubit falls back to its ground state. T2 is the dephasing time — how long before the phase information dissolves into noise. On superconducting processors both are measured in microseconds, and a circuit has a few hundred nanoseconds to run before the universe reclaims its randomness. I spent a long time fighting this noise while building Quantum Genesis. At first I treated it as a bug. Then I realised it was the entire point. What the noise actually does We run a 12-qubit Hadamard-plus-CNOT circuit on real hardware. The ideal output is a broad, flat ...

Connecting real IBM hardware to your Python art pipeline

Image
This is the exact method that seeded NFTs #19–100 in the Quantum Genesis collection — 82 pieces, each one grounded in a measurement from a real IBM Quantum processor. When I got it working I was mildly annoyed at how short the script ended up being, because the journey to it was not. The whole thing fits in under 50 lines of Python. If you follow along, you'll end with a working quantum random seed generator: a job submitted to real hardware, a 12-qubit circuit, and a deterministic hex seed on the other side, ready to drive any generative art system. Should I set expectations? The code is the easy part. What actually costs you time is the moving parts around it — the channel name that changed, the SamplerV2 result format that isn't meas anymore, and a queue that doesn't care about your evening plans. I've flagged each one where it bites. What you need before starting Python 3.9+ A free IBM Quantum account at quantum.cloud.ibm.com Basic Python fluency (functions, ...

Quantum Genesis: The Full Story — 100 Artworks Seeded by Real Quantum Computers

Image
Every generative art project you have seen uses pseudorandom numbers: deterministic sequences that look random until someone recovers the seed. I wanted something different — art generated from measurements on real quantum hardware, outcomes that did not exist until a qubit was measured. So I connected to two quantum computers, Origin Quantum's WK_C180 and IBM's ibm_fez and ibm_torino , and used their measurement outputs to make 100 pieces. No simulators, no classical fallback, no "quantum-inspired" shortcuts. This is the full story in one place: how the pipeline works, how the provenance can be checked, what happened on each machine, the numbers, and what I would do differently. The short version 100 NFTs on Polygon, ERC-721, contract 0x488fCfaEA5fDf1cF6BAED5e8A34D7858033E1a27 . Two vendors, three processors — Origin WK_C180 for #1–#18, IBM ibm_fez and ibm_torino for #19–#100. Zero classical fallback. Every seed traces to a physical measurement. 5% royalti...