Skip to content

EmergentMonk/qecaudioqc64

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QC64 - Quantum Simulator for the Commodore 64

QC64 is an experimental quantum computing simulator for the Commodore 64, written in pure BASIC.

Creating a Bell State on Commodore 64

Features

  • Simulate operations of various quantum gates including Pauli-X, Pauli-Y, Pauli-Z, Hadamard, CNOT, and SWAP on a two-qubit system.
  • Enhanced audio tracking: Real-time sound feedback using the SID chip for each quantum gate operation.
  • Colorful display: Improved visual experience with color-coded results and interface elements.
  • Audio completion notification: Musical sequence plays when calculations complete.
  • Written in less than 200 lines of BASIC code.

How it works

Starting from the initial state |00>, the simulator can apply various quantum gates to manipulate the state of the two-qubit system. This allows for the simulation of various quantum computing concepts right on your Commodore 64!

Audio Tracking Enhancement

The enhanced version includes a tracker-style audio system that provides real-time auditory feedback:

  • Each quantum gate operation triggers a unique sound frequency via the SID chip
  • Different gate types produce different tones (e.g., Hadamard gates at 8000 Hz, Pauli-X at 7000 Hz)
  • A musical completion sequence plays when the quantum simulation finishes
  • Colors are used throughout the interface to distinguish different quantum states and results

Color Scheme

  • Blue border and light blue background for the main interface
  • Green text for input prompts
  • Color-coded results: Different colors for each quantum state (00, 01, 10, 11)
  • Visual feedback with reverse video for the title banner

Contributions

Contributions to QC64 are welcome! Feel free to create a pull request or open an issue if you have ideas for improvements or spot any bugs.

License

QC64 is released under MIT License. Let's Rekindle the Magic of Vintage Computing!

About

Quantum Computing on the Commodore64 + Updates ;-)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • BASIC 100.0%