Skip to content

Commit

Permalink
Fix Syntax Error
Browse files Browse the repository at this point in the history
  • Loading branch information
adamisntdead committed Apr 11, 2018
1 parent fa20ddc commit b5793e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QuSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def generateGate(gate, numQubits, qubit1, qubit2=1):
identity = gates.singleQubitGates['Id']
mainGate = gates.singleQubitGates[gate]
gateOrder = (mainGate if i == qubit1 else identity
for i in range(1, numQubits + 1)])
for i in range(1, numQubits + 1))
return reduce(np.kron, gateOrder)


Expand Down

0 comments on commit b5793e9

Please sign in to comment.