Skip to content

Add Quantum Carpet particle-in-a-box brush#65

Open
Fokiees wants to merge 7 commits into
moth-quantum:distfrom
Fokiees:codex/quantum-carpet-brush
Open

Add Quantum Carpet particle-in-a-box brush#65
Fokiees wants to merge 7 commits into
moth-quantum:distfrom
Fokiees:codex/quantum-carpet-brush

Conversation

@Fokiees

@Fokiees Fokiees commented Jun 11, 2026

Copy link
Copy Markdown

Example

Quantum Carpet before and after

Summary

  • add a deterministic quantumcarpet brush based on particle-in-a-box wave-packet evolution
  • map transverse position across the stroke to the particle position and progress along the stroke to time
  • expose controls for ribbon radius, eigenstate modes, evolution rate, blend strength, and color
  • include a physics/creative-use README, generated before/after images, and focused unit tests

The brush uses interference between energy eigenstates with their characteristic
n^2 phase evolution, producing bright bands, dark canals, and partial revival
structures along a stroke. It depends only on NumPy at runtime.

Validation

  • python -m unittest effect.quantumcarpet.test_quantumcarpet -v
    • 3 tests passed
  • python -m effect.quantumcarpet.generate_examples
    • generated the committed before/after images from the actual brush
  • python -m py_compile effect/quantumcarpet/quantumcarpet.py effect/quantumcarpet/generate_examples.py effect/quantumcarpet/test_quantumcarpet.py
  • validated effect/quantumcarpet/quantumcarpet_requirements.json as JSON

AI disclosure

I used OpenAI Codex for repository navigation, implementation drafting, test
review, and submission preparation. I reviewed the implementation, inspected
the generated output, and ran the validation commands above locally.

Addresses #50.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant