Last active
June 5, 2019 04:11
-
-
Save rish-16/05d1201ff79084af693cb25ecadde562 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| `n` is the number of Qubits needed to | |
| generate a a random number between | |
| 0 and 2^n - 1 | |
| ''' | |
| n = 3 | |
| ''' | |
| Creating a Quantum Register with `n` Qubits and | |
| `n` Classical Bits where n=3 | |
| ''' | |
| q = qk.QuantumRegister(n) | |
| c = qk.ClassicalRegister(n) | |
| circ = qk.QuantumCircuit(q, c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment