Skip to content

Commit 8bf7caa

Browse files
committed
fix run_regression
1 parent 4d1a9fa commit 8bf7caa

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.cursorignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/regression/run_regression.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040

4141

4242
def gen_data(L, N):
43-
omega_0 = np.zeros([2**L], dtype="complex_")
43+
omega_0 = np.zeros([2**L], dtype=complex)
4444
omega_0[0] = 1 + 0j
4545

46-
omega_1 = np.zeros([2**L], dtype="complex_")
46+
omega_1 = np.zeros([2**L], dtype=complex)
4747
omega_1[-1] = 1 + 0j
4848

49-
states = np.zeros([N, 2**L], dtype="complex_")
49+
states = np.zeros([N, 2**L], dtype=complex)
5050

5151
thetas = 2 * np.pi * np.random.rand(N)
5252
phis = 2 * np.pi * np.random.rand(N)

0 commit comments

Comments
 (0)