Postagens

Mostrando postagens de março, 2026

Converting 100 SVGs to PNGs on Windows: The Selenium Headless Trick

Imagem
Table of Contents The Problem: SVG to PNG on Windows Alternatives We Tried (and Why They Failed) The Selenium Solution Setup: Chrome + ChromeDriver + Selenium Converting a Single SVG Batch Processing 100 Files Quality Considerations Post-Processing with Pillow We had 100 SVG artworks generated by quantum computers for the Quantum Genesis collection. We needed PNGs to upload to IPFS (SVG support varies across NFT platforms and wallets). On Linux or macOS, you'd use cairosvg and be done in five minutes. We were on Windows. It took considerably longer than five minutes. This post documents the problem, the failed attempts, and the solution that actually worked: using Selenium with headless Chrome to screenshot SVGs into pixel-perfect PNGs. The Problem: SVG to PNG on Windows SVG (Scalable Vector Graphics) is an XML-based format. Converting it to a raster format like PNG requires an SVG rendering engine — something that can parse the XML, execute the gradient definit...

Quantum Supremacy in 2026: Where Are We Really?

Imagem
Table of Contents What "Quantum Supremacy" Actually Means Google's Sycamore Claim IBM's Roadmap: Eagle to Heron to Starling Origin Quantum's WK_C180: 180 Qubits From China What You Can Actually Run Today Our Experience: Running Real Circuits on Both Platforms Hype vs Reality We've had hands-on access to two of the world's most advanced quantum computers: IBM's ibm_fez (156 qubits) and Origin Quantum's WK_C180 (180 qubits). We used them to generate art for the Quantum Genesis NFT collection — running real quantum circuits, collecting real measurement data, and turning quantum noise into abstract art. That experience gave us a perspective on the state of quantum computing that most blog posts and press releases don't provide. This is a reality check. What "Quantum Supremacy" Actually Means Quantum supremacy (or "quantum advantage") is a specific technical claim: a quantum computer has performed a computation...

Generative Art with Python: From Random Seeds to SVG Masterpieces

Imagem
Table of Contents Architecture: Seeds to SVG Color Theory: HSL and Harmony Types The QuantumRNG Class Setting Up the SVG Canvas Layer 1: Background and Gradients Layer 2: Geometric Shapes Layer 3: Bezier Curves and Flow Fields Layer 4: Particles and Noise Texture Putting It All Together Results: 100 Unique Artworks The Quantum Genesis collection is 100 pieces of abstract art, each generated by a Python script fed with random data from real quantum computers. No human picked the colors. No artist arranged the shapes. The quantum measurements from IBM's ibm_fez and Origin Quantum's WK_C180 processors determined everything. This post is a complete walkthrough of how we built the art generator. By the end, you'll understand every layer of the composition and have enough code to build your own generative art system. Quantum Genesis #12 — Origin Quantum WK_C180. Every color, shape, and curve was determined by quantum measurements. Architecture: Seeds to SVG ...

Writing a Secure ERC-721 Smart Contract Without OpenZeppelin

Imagem
Table of Contents Why We Skipped OpenZeppelin Custom Errors: Cheaper Than Strings Access Control Without Ownable.sol Reentrancy Protection Implementing ERC-721 Core EIP-2981 Royalties Batch Minting Safety Deployment on Polygon When we built the smart contract for Quantum Genesis — our 100-NFT collection generated by real quantum computers — we made a deliberate choice: no OpenZeppelin. We wrote every line of Solidity ourselves. This post explains why, and walks through every security decision we made along the way. Why We Skipped OpenZeppelin OpenZeppelin is the gold standard for smart contract libraries. It's audited, battle-tested, and used by most NFT projects. So why skip it? Three reasons: Bytecode size. OpenZeppelin's ERC-721 implementation pulls in a chain of inherited contracts: Context, ERC165, IERC721, IERC721Metadata, and more. For a simple 100-token collection with no marketplace features, that's unnecessary bloat. Smaller bytecode means lo...

Quantum Error Correction Explained: Why Your Qubits Need Backup

Imagem
Table of Contents Why Qubits Fail Bit-Flip and Phase-Flip Errors Why Classical Error Correction Won't Work The Steane 7-Qubit Code Surface Codes: The Industry Favorite How Noise Makes Our NFT Art Unique The Road to Fault-Tolerant Quantum Computing Every time we ran a quantum circuit on IBM's ibm_fez processor to generate art for the Quantum Genesis collection, something fascinating happened: the results were never perfectly clean. There was always noise. Errors crept into every measurement, every gate operation, every qubit interaction. Most people see that as a problem. We turned it into art. But if you want to understand why quantum computers are so error-prone and what the entire industry is doing about it, you need to understand quantum error correction (QEC). This is arguably the single most important challenge standing between today's noisy quantum processors and the fault-tolerant quantum computers of the future. Quantum Genesis #7 — generated on...