Posts

Showing posts from April, 2026

SHA-256 for Developers: Turning Quantum Noise Into Deterministic Seeds

Image
Every piece in Quantum Genesis starts with a quantum measurement — a probabilistic event that produces a distribution of bitstring counts. But art generation needs a single, fixed seed to reliably reproduce an image. The bridge between probabilistic quantum data and deterministic art is SHA-256. What I want to show here isn't just what SHA-256 is. It's the specific way we use it, because the naive version has a subtle bug I hit the first time: the order of the measurement results matters for reproducibility, and if you get that wrong your "deterministic" seed stops being deterministic. This is the corrected pipeline, with complete Python code you can run yourself. What a hash function is A cryptographic hash takes input of any size and produces a fixed-size output. Three properties are what matter: Deterministic — the same input always gives the same output. On any machine, in any language, forever. One-way — given the output, you can't reconstruct the inp...

Quantum Computing for Beginners, Without the Physics Degree

Image
I learned quantum computing the way I learn most things: by getting my hands dirty before the theory stuck. I didn't start with a physics degree — I started with Qiskit and a bunch of broken circuits. This post is the version of that journey I'd hand to a fellow programmer: a mental model you can actually use, followed by code you can run on real hardware today for free. If you can write Python, you can write quantum circuits. The math is genuinely fascinating, but Qiskit and friends abstract enough of it that you can build things immediately and pick up the theory along the way — which is exactly what we did for Quantum Genesis. Bits: what you already know Your laptop runs on bits. Each bit is 0 or 1, and everything your computer does — rendering this page, playing audio, running code — is billions of 0s and 1s shuffled around very fast. A byte is 8 bits and holds 256 values (2^8). A 64-bit processor handles 64 bits at a time. It's deterministic and predictable: set a v...

The ERC-721 Metadata Standard, Readable End to End

Image
The most demoralizing bug I hit early on wasn't in the smart contract — it was a blank card on a marketplace. The token existed, the contract was correct, and yet nothing rendered. The problem was metadata: one malformed JSON field and the whole display chain silently breaks. That's why I care about this standard more than the hype around it. An ERC-721 token is, at its core, just a number owned by an address. Everything people actually see — name, image, description — lives in a separate metadata file that the contract points to. This post is a working reference for getting that metadata right, from required fields to the display types that control how marketplaces render your traits. I'll use our own Quantum Genesis metadata as the concrete example throughout. How ERC-721 metadata works The token is just a number (token ID) owned by an address. By itself it has no image, no name, no description. All of that lives in metadata — a JSON file the contract references thro...

Choosing colors for generative art with HSL, not RGB

Image
My first attempts at generative art produced colors that physically hurt to look at. The problem wasn't randomness — it was that I was picking RGB values straight from a random number generator. RGB is how screens display color, but it's a terrible interface for design decisions. Want a "slightly warmer" version of a color in RGB? You'd be guessing at how much red to add and blue to remove. Want a pastel palette? Good luck computing that across three channels. HSL (Hue, Saturation, Lightness) maps directly to how people actually think about color. Once I switched my generative pipeline to think in HSL and only convert to RGB at the very end, every palette stopped looking like noise. This post is the mental model I wish I'd had, the five classic harmonies, and the Python that makes them repeatable — including how we feed quantum randomness into the whole thing for the Quantum Genesis collection. Why HSL wins RGB gives you 16.7 million combinations with no i...

The quantum gates that built our art, explained with Qiskit

Image
Every circuit we ran to generate the Quantum Genesis pieces is built from a small set of quantum gates. When I first picked up Qiskit, gates felt like abstract boxes on a diagram — I could run them but I didn't really get what they were doing. This is the walkthrough I needed back then, built the way I actually learned it: pick a gate, run it, look at the output, and only then believe the description. If you've never touched quantum computing, here's the one mental hook that makes everything else click: a qubit's state is a point on a sphere (the Bloch sphere), and each gate rotates that point. Different gates rotate around different axes by different amounts. A computation is just a sequence of rotations followed by a measurement that collapses the sphere to a definite 0 or 1. What quantum gates are In classical computing, logic gates (AND, OR, NOT) transform bits. Quantum gates do the same for qubits, but they operate on probability amplitudes rather than just 0s ...

Quantum entanglement for developers, shown through the CNOT gate

Image
Entanglement is the most misunderstood concept in quantum computing. Pop science calls it "spooky action at a distance," as if measuring one particle magically changes another across the universe. That framing is poetic but useless if you're trying to use entanglement in code. Here's the developer-friendly version: entanglement is a correlation between measurement outcomes that can't be explained by classical shared randomness. And creating it is trivially easy — a Hadamard gate followed by a CNOT. Two lines of Qiskit. In this post I'll strip away the mysticism, show you the circuits, and explain how we actually used entanglement to generate better randomness for the Quantum Genesis art. What entanglement really is Two qubits are entangled when their measurement outcomes are correlated in a way that can't be reproduced by flipping two independent coins — even if those coins are somehow pre-programmed to match. Try this analogy. You flip two coins. ...

Deploying and Minting 100 NFTs on Polygon with web3.py

Image
We deployed the Quantum Genesis contract and minted all 100 pieces for about 0.3 POL in gas — under a dollar at the time. On Ethereum mainnet the same operations would have cost somewhere between $500 and $2,000 depending on the day. This post is the full path we took: a self-contained ERC-721 written from scratch, compiled and deployed with Python, and batch-minted in five transactions. The gas numbers are the ones from our own receipts, not estimates. The collection itself is 100 artworks generated from measurements on real quantum computers, so the budget needed to go into quantum time and IPFS pinning, not transaction fees. That constraint drove every choice below — and it is the honest reason a project like this ends up on Polygon instead of Ethereum. Why Polygon: three requirements, one compromise Before writing a line of Solidity we wrote down what the chain had to do for a 100-piece collection: Negligible gas. The art and its provenance should carry the project, not the ...