Skip to content

Commit bddc4a2

Browse files
authored
Removed division of sqrt(2) (#17)
that's not supposed to be on the X gate. Probably a copy & paste mistake
1 parent 3b0a493 commit bddc4a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ch03/simulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
X = np.array([
2525
[0, 1],
2626
[1, 0]
27-
], dtype=complex) / np.sqrt(2)
27+
], dtype=complex)
2828

2929
class SimulatedQubit(Qubit):
3030
def __init__(self):

0 commit comments

Comments
 (0)