Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Setting up a qubit to represent the variable P
- circ.u3(probToAngle(0.35), 0, 0, net[0])
- # Since we have P = 1, we use the second row of the probability table for the variable E
- circ.u3(probToAngle(0.76), 0, 0, net[1])
- # Setting up the qubit representing H assuming that E = 0
- circ.u3(probToAngle(0.39), 0, 0, net[2])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement