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

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.

Quantum Genesis #100 — the final piece, seeded on IBM Quantum

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% royalties through EIP-2981.
  • Under $1 in gas for deployment plus all 100 mints.

The collection is live on OpenSea. Everything below is the story behind those numbers.

Why quantum randomness matters for art

When you call Math.random() in JavaScript you get a value from a deterministic algorithm. Same internal state, same output, always. That is fine for a game or a simulation; it is a weaker foundation for a piece whose value depends on being genuinely one of a kind. If the process can be replicated, uniqueness rests on social agreement rather than on anything in the math.

Quantum randomness is a different kind of event. Put a qubit in superposition with a Hadamard gate and measure it; the outcome is governed by the Born rule. No hidden variable decides it, no algorithm produces it. It happens, and the pre-measurement state is gone.

For art, that means each piece is anchored in an event that cannot be replayed. You cannot rewind the universe and get the same measurement twice. The pieces inherit that property — not as a marketing line, but as a fact about how the seed came to exist.

The pipeline, from qubit to pixel

  1. Circuit. 12 qubits, a Hadamard on each, two layers of CNOTs, then measurement. With a Hadamard on every qubit the CNOTs add no entanglement, so the ideal output is uniform over all 4,096 bitstrings — exactly what a seed needs. No classical seed anywhere in the loop.
  2. Hardware. 8,000 shots per piece on Origin, 4,096 on IBM. The distribution of bitstrings is the raw material.
  3. Seed. The counts are serialized in sorted order and hashed with SHA-256 into a 256-bit hex seed.
  4. Expansion. The seed initializes a custom xorshift128+ generator, expanded through SHA-512, which produces a reproducible stream.
  5. Art. That stream drives every visual decision: shapes, bezier curves, particles, gradients, palette harmony. No human picked a colour or placed a shape in any of the 100 pieces.
  6. Rasterization. SVG rendered to PNG in headless Chrome, because the compositions use filters and blend modes that lighter rasterizers get wrong.
  7. Storage. Art and metadata pinned to IPFS through Pinata, with content-addressed CIDs.
  8. Mint. ERC-721 on Polygon mainnet, 5% EIP-2981 royalties, fixed supply of 100.

The neat part: once you have the seed, the art is fully deterministic. Same seed, same image, always — anyone can regenerate a piece from its metadata. But the seed itself came from physics, and cannot be reproduced.

Inside the generator

Hash the whole distribution, not one shot. A single shot carries at most 12 bits; the full histogram over 4,096 outcomes carries the statistics of the run, including the noise of that machine on that day. The counts are sorted before hashing, because dictionaries do not guarantee order and the same counts must always give the same seed.

A deterministic RNG on top. The 256-bit seed is expanded through SHA-512 into the state of an xorshift128+ generator: pure Python, no dependencies, easy to audit. The RNG is deterministic; the seed is not. That split is the whole design.

Colour from harmony rules, not raw bits. Early experiments mapped random bits straight to RGB and produced mud. The generator now picks a base hue and one of five harmony rules — complementary, analogous, triadic, split-complementary or tetradic — and derives the palette from it (details in the HSL colour post).

Composition in layers. Each SVG is built back to front: a dark gradient background, large shapes, curves, particles and fine detail, every parameter a draw from the RNG. No human chose a colour or placed a shape in any of the 100 pieces.

Why this circuit

I tried several gate layouts before settling on this one — GHZ chains, linear CNOT chains, Bell pairs, rotation-biased circuits. The honest lesson came later: which qubits get the Hadamard decides everything. Put it on every qubit and the CNOTs only shuffle outcomes that were already equally likely; put it only on control qubits and you get real entanglement. For a random seed, the uniform version is the right tool. I wrote up how to tell the difference — and how to prove entanglement with a CHSH Bell test — in the entanglement post.

The Origin Quantum chapter (#1–#18)

The project began at Origin Quantum, a Chinese quantum computing company. Their WK_C180 processor — 180 superconducting qubits — is reached through the pyqpanda3 SDK and the QCloudService API.

Each circuit ran 8,000 shots. Getting access, debugging the SDK and working out the measurement syntax — measure([0,1], [0,1]) with explicit classical bits — was an adventure of its own. The API endpoint is not the public site, the English documentation is thin, and the error messages are sparse. I read SDK source code more than once.

Those 18 pieces carry a provenance I could not have engineered: they are among the very few NFTs generated on a Chinese quantum processor. That is the part of the collection I would not trade, even though the SDK made me earn it.

The IBM chapter (#19–#100)

Then the Origin chip went into maintenance, and queue times became unpredictable with 82 pieces still to go. I moved to IBM Quantum: Qiskit Runtime's SamplerV2, with generate_preset_pass_manager at optimization level 1 to map the 12-qubit circuit onto each processor's heavy-hex topology.

Circuits ran on ibm_fez (156 qubits) and ibm_torino (133 qubits), 4,096 shots each, at roughly 19 seconds per piece on ibm_fez. The whole batch — generate, rasterize, upload, mint — completed with zero classical fallback.

The switch was not planned, and I have written a separate field comparison of the two stacks because the developer experience differed more than the physics did. If I started again, I would begin on IBM and treat Origin as the second source from day one, instead of discovering that lesson mid-collection.

What the art looked like

Three pieces, three different machines:

Quantum Genesis #1 — Origin Quantum WK_C180

Quantum Genesis #25 — IBM Quantum ibm_fez

Quantum Genesis #75 — IBM Quantum ibm_torino

Each token carries the same metadata schema: Entropy Level, Entropy Score (0–100), Qubit Configuration, Quantum Phase, Color Harmony, Complexity Score, Quantum Seed and Processor. All of it was written before the mint and pinned to IPFS, so the record cannot be quietly edited after the fact without changing the CID.

Provenance you can check

A certificate that lives in one place is marketing, not provenance. Each token's metadata carries a quantum authenticity record: the processor, the circuit, the shot count, the UTC timestamp of the job, the seed, and an integrity_hash — a SHA-256 over all of those fields. Change any field and the hash breaks.

  • Content-addressed storage. Art and metadata live on IPFS in two separate directories, so the metadata can point at the art by CID. Editing a file produces a new CID instead of silently replacing the old one.
  • Reproducible art. The generator is deterministic, so anyone can re-derive a piece from its seed and compare.
  • Checkable origin. The job timestamp can be cross-referenced with the provider's job history; a classical RNG cannot produce a record that points to a real quantum job.

One limit worth stating plainly: the contract owner can still point the base URI somewhere else. Any such change would be visible as a different CID, but "nobody can change it" would be too strong a claim. The details are in the contract post.

The Polygon bill

Deployment cost about 0.08 POL. The 100 mints cost roughly 0.25 POL in total, split into 18 individual mints followed by five batches of 20, 20, 14, 14 and 14. Add it up and the whole collection landed under a dollar — against an estimated $500 to $2,000 for the same operations on Ethereum mainnet.

That gap is the reason this project exists on Polygon. The budget went into quantum time, IPFS pinning and the art, not into transaction fees. The full deployment script and the gas table are in the mint walkthrough.

Setting up OpenSea and the trait lesson

The collection is listed on OpenSea (it does not have the verified badge yet — that requires $50K in trading volume). Setting it up required the contract address, a message signed by the deployer wallet, collection metadata, and — the part that caused the most rework — standardized trait strings.

"High", "high" and "HIGH" are three different traits to an indexer. On a 100-piece collection with nine attributes, a single inconsistent capitalization fragments the filters and makes the collection look broken. We normalized every value and regenerated the metadata before the final upload. If you take one operational lesson from this post: validate trait strings across the whole set before pinning, not after.

What I would repeat, and what I would redo

Repeat:

  • Batch everything. Single-piece minting is wasteful even on Polygon; 20 per transaction is a safe ceiling.
  • Record the seed at generation time. A simple JSON registry saved hours during metadata assembly.
  • Pin with redundancy. Pinata plus a local IPFS node plus a second provider. One provider going down should not put the collection at risk.
  • Verify the pipeline end to end before minting. Regenerate one piece from its seed and compare hashes. If that fails, nothing downstream matters.
  • Upload PNGs, keep SVGs as source. Marketplaces render SVG filters inconsistently; PNG renders everywhere. Headless Chrome was the only rasterizer that matched the browser exactly (how).

Redo:

  • Start on IBM. The SDK and queue behaved better for production volume; Origin would have been the second source, not the first.
  • Pin SDK versions from day one. A mid-project breaking change in pyqpanda3 cost days.
  • Decide the metadata schema before generating art. Changing an attribute name after 100 files are pinned means regenerating and re-uploading all of them.
  • Test all 100 token IDs on a simulator first. Visual artefacts showed up only after the first real batch and forced a regeneration.
  • Set a complexity budget. Fractal and noise layers looked great but produced 500 KB SVGs that some renderers choked on. Cap element count and file size up front.

Was it worth it?

Yes — with the caveat that "quantum" is not what makes the art good. The compositions have to stand on their own; the provenance is what makes them checkable. Those are separate claims, and confusing them is how projects end up selling a gimmick.

What the quantum source buys is a seed that nobody — not the artist, not the platform, not the buyer — could have predicted or reproduced. Whether that matters to you is a question about what you want from an artwork's history. For me it was the whole reason to build the collection, and it is the part I would defend in an argument.

If you try this yourself, expect the first seed generation to feel like magic, the second to feel routine, and the queue waits to feel like a personal attack.

Comments

Popular posts from this blog

Quantum Key Distribution for Developers — BB84 with Qiskit

Qiskit Runtime & the Primitives — SamplerV2 and EstimatorV2 in 2026

Post-Quantum Cryptography in 2026 — What Developers Actually Need to Know