add Copenhagen Brush: quantum wave function collapse#44
Open
saadbhattii wants to merge 1 commit intomoth-quantum:distfrom
Open
add Copenhagen Brush: quantum wave function collapse#44saadbhattii wants to merge 1 commit intomoth-quantum:distfrom
saadbhattii wants to merge 1 commit intomoth-quantum:distfrom
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.
Closes #33
Copenhagen Brush
Hi! I'd like to contribute the Copenhagen brush: an implementation of the Copenhagen interpretation of quantum mechanics for digital art.
The brush samples all pixels within the stroke region, builds a quantum circuit with Hadamard gates, and runs it on AerSimulator. The measurement collapses the circuit to a single bitstring, which selects one color from the stroke region and every pixel in that specific stroke snaps to it.
I've included a detailed README with the background, high level and low-level descriptions, my personal motivation, tips for creative usage of the brush and a full workflow with screenshots. Hope you enjoy it!
Files Added
effect/copenhagen/copenhagen.pyeffect/copenhagen/copenhagen_requirements.jsoneffect/copenhagen/__init__.pyeffect/copenhagen/README.mdeffect/copenhagen/screenshots/Dependencies
qiskit >= 2.0.0andqiskit_aer >= 0.17.0— both installed bysetup.sh.