Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # Setting up a qubit to represent the variable P
  2. circ.u3(probToAngle(0.35), 0, 0, net[0])
  3.  
  4. # Since we have P = 1, we use the second row of the probability table for the variable E
  5. circ.u3(probToAngle(0.76), 0, 0, net[1])
  6.  
  7. # Setting up the qubit representing H assuming that E = 0
  8. circ.u3(probToAngle(0.39), 0, 0, net[2])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement