Skip to content

Commit 8d5d9be

Browse files
committed
Update quantum-gates.md dtype issue
1 parent 9d20547 commit 8d5d9be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials-v4/quantum-circuits/quantum-gates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ From QuTiP 4.4 on, user defined gates can be defined by a python function that t
418418
```python
419419
def user_gate1(arg_value):
420420
# controlled rotation X
421-
mat = np.zeros((4, 4), dtype=np.complex)
421+
mat = np.zeros((4, 4), dtype=complex)
422422
mat[0, 0] = mat[1, 1] = 1.0
423423
mat[2:4, 2:4] = rx(arg_value)
424424
return Qobj(mat, dims=[[2, 2], [2, 2]])

0 commit comments

Comments
 (0)