Add Quantum Fracture brush#55
Open
ahkatlio wants to merge 4 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
I've added a new brush called Quantum Fracture - a crystalline fracture effect powered by discrete-time quantum walks.
What it does
It turns your brush stroke into glowing, jagged crystal-like fractures. The pattern comes from a real quantum simulation: a discrete-time quantum walk on a line. Depending on the "Measurement Rate" parameter, it can look like sharp quantum interference patterns (low rate) or softer, more classical diffusion (high rate). The result feels like painting with frozen quantum probability itself.
Key features
Each stroke is unique thanks to the quantum sampling noise from the simulator.
Quantum background
The core is a discrete-time quantum walk (DTQW) using Qiskit. A Hadamard coin creates superposition, and the walker interferes with itself, producing those characteristic sharp twin peaks instead of a boring Gaussian blob. Mid-circuit measurements simulate the measurement-induced phase transition, which is an active research topic in quantum information. I thought it would be cool to make that visible and artistic.
Files added
qfracture/qfracture.py- main brush implementationqfracture/qfracture_requirements.json- parameters and metadataqfracture/README.md- detailed explanation and usage guideqfracture/screenshot_demo.png- example outputI followed the template and tutorial from the repo. Tested locally, and it runs smoothly (kept circuit size small so it stays responsive).
Would love any feedback on the visual feel or code cleanliness. This was a really fun one to build - trying to turn actual quantum interference into something you can paint with.
Sloves #50