SHARE
TWEET

Untitled

a guest May 23rd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '''
  2. `n` is the number of Qubits needed to
  3. generatea a random number between
  4. 0 and 2^n - 1
  5. '''
  6. n = 3
  7.  
  8. '''
  9. Creating a Quantum Register with `n` Qubits and
  10. `n` Classical Bits where n=3
  11. '''
  12. q = qk.QuantumRegister(n)
  13. c = qk.ClassicalRegister(n)
  14. circ = qk.QuantumCircuit(q, c)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top