Skip to content

Instantly share code, notes, and snippets.

@codeguru42
Created December 3, 2016 23:19
Show Gist options
  • Save codeguru42/96a490e50801b3c0551d0cdd11ff7319 to your computer and use it in GitHub Desktop.
Save codeguru42/96a490e50801b3c0551d0cdd11ff7319 to your computer and use it in GitHub Desktop.
Run of Quantum Computer Simulator
myrdraal% python main-file.py
How many qubits would you like to use? (Currently, only supports 1): 2
Would you like your initial qubits to be in the |0> state or |1> state? 0 or 1: 0
['Hadamard', 'X', 'Z', 'Y', 'sqrtX', 'phase shift', 'measurement', 'custom']
['cNOT', 'swap']
['Toffoli']
what gate would you like to use for 1st qubit? Use the list of single qubits at the top, plus control or targettarget
Which gate is this target qubit for? See list of two qubit gates at the top.X
Done with your 1st qubit? y or n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment