min_qsim
- 1 Devlogs
- 9 Total hours
Minimalist Quantum Computer Simulator
Minimalist Quantum Computer Simulator
This is a minimalist quantum computer simulation that I coded up over 3 days as a passion project.
Features:
Initialization of n-qubits systems (Also allows for custom statevectors to be inputted)
Different Gates (X, Y, Z, RX, RY, RZ, H, S, T, CZ, CNOT, SWAP, CCX)
Measurements: Checking for statevector normalization, probabilities within a given state vector, full measurement of a qubit, partial measurement of a system with auto state vector re normalization, resetting certain qubits, sampling qubits a given number of times
Debugging tools: Fomatting of probabilities for statevectors
Circuit Class: Wrapping everything up into a circuit class for easy access and use
Picture is just a part of the code that I am proud of which was the partial measurements, one of the hardest part to code for me.