You are browsing as a guest. Sign up (or log in) to start making projects!

1h 31m 33s logged

I rebuilt (1st attempt was with matplotlib) the rendering layer around a hardware-accelerated Pygame canvas. Now the frontend intercepts mouse clicks, updates matrix values, and redraws the probability bars smoothly at 60 FPS.
Linking my simulator backend to the visual grid immediately broke macroscopic entanglement. The backend processed binary indices left-to-right, but standard notation and my GUI histogram read states right-to-left. Because of this index mismatch, clicking the top wire (Qubit 0) in the GUI was mathematically altering the bottom wire (Qubit 2) in the engine, corrupting Bell State results.Instead of patching it on the frontend with messy string reversals, I went into the math engine and inverted the Kronecker product expansion direction to process wires top-down natively:

Don’t know if the devlog will process this .md snippet…
$$U_{\text{full}} = U_{\text{gate}} \otimes I \otimes \dots \otimes I$$

With the backend math matching the visual grid layout 1:1, dropping a Hadamard and a CNOT on Qubit 0 instantly maps to the correct indices, splitting the system probability cleanly into a |000⟩ and |110⟩ state.

0
41

Comments 1

@drew_jon_miller

That snippet did not work. Non inverted formula is in the readme on github at the bottom.