Quantum Computing
π§ Quantum Logic Simulator: Probabilistic Bit Collapse Visualizer
Overview:
This software simulates a simplified quantum-inspired addition process using classical probabilistic modeling. It visually represents how quantum-like states (probabilities) evolve over several computation cycles and then "collapse" to final binary results. Designed to be educational and intuitive, the software helps users understand how qubit probabilities shift through operations and how results emerge via probabilistic collapse.
π Key Features:
β Configurable Input:
-
Input two unsigned integers (
A
andB
) for addition. -
Define:
-
Number of Cycles: Simulates multiple computational passes for state refinement.
-
Number of Runs: Repeat the simulation multiple times to observe variations.
-
β Bit-Level Breakdown:
-
Inputs are broken down into 5-bit binary arrays.
-
Each qubit (bit) is tracked individually across all cycles, with their bias probability being adjusted based on the simulated computation logic.
β Cycle Simulation:
-
Each cycle represents a logic pass that probabilistically adjusts each qubitβs bias depending on the partial sum (like a full adder).
-
Bias adjustments are shown in detail (e.g., "Qubit[3]: Prob: 50% -> 51% (Increased)").
β Probabilistic Collapse Phase:
-
After all cycles, each qubit collapses to either
0
or1
based on its bias (e.g., a 70% bias means a 70% chance of collapsing to 1). -
Final output is reconstructed from these collapsed bits and presented in both binary and decimal formats.
β Refinement Mode:
-
Optional toggle to retain qubit biases between runs, simulating continuous learning/refinement.
-
When unchecked, all qubit probabilities reset to 50% at the end of each run.
β Console Log Output:
-
All activity is displayed in a structured, styled
RichTextLabel
console:-
Inputs
-
Bit states
-
Per-qubit computation
-
Probabilistic transitions
-
Final collapsed values
-
π Educational Purpose:
This tool is great for:
-
Quantum computing education β illustrating probabilistic computation and collapse.
-
Algorithm visualization β showing per-bit transformations and simulation steps.
-
Debugging probabilistic logic β especially in quantum-like or neural-inspired systems.
π§© Underlying Logic:
-
Qubit biases (0β100%) simulate quantum uncertainty.
-
The full-adder logic uses
A + B + Carry
to determine the next state influence. -
A simple random roll determines bias adjustments and collapse results.
-
This is not a quantum emulator, but a visual and logical abstraction of some quantum computing concepts like superposition collapse and iterative refinement.
π οΈ Built With:
-
Godot Engine 4.x
-
GDScript
-
UI components:
TextEdit
,Button
,CheckBox
,RichTextLabel
π‘ Example Use Cases:
-
Teaching students how quantum-style thinking works.
-
Showing how repeated probabilistic decisions can "learn" over time.
-
Comparing classical binary logic to probabilistic outcomes.
β οΈ Disclaimer
This software is a simplified simulation and does not represent the actual mechanics or physics of a real quantum computer.
It is designed for educational and illustrative purposes only, using probabilistic logic inspired by quantum concepts like superposition and collapse. Real quantum systems involve complex phenomena such as entanglement, interference, and wavefunction evolution, which are not modeled here. Use this tool to build intuition, not to simulate real quantum computation.
Published | 7 days ago |
Status | Released |
Category | Tool |
Platforms | HTML5, Windows, Linux |
Author | Ken Games |
Genre | Simulation |
Made with | Godot |
Tags | quantum-computing, tech |
Average session | A few seconds |
Languages | English |
Inputs | Keyboard, Mouse |
Download
Click download now to get access to the following files: