Minimalist Quantum Computer Simulation
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.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.