Skip to content

Commit 8c93a94

Browse files
committed
Time evolution realized by Trotter decomposition
1 parent 0d84ddd commit 8c93a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/timeevolution_trotter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def Trotter_step_unitary(input_state, tau, nqubit):
3838
)
3939

4040
ninput = 2
41-
input_state = np.zeros((ninput, 2 ** nqubit))
41+
input_state = np.zeros((ninput, 2**nqubit))
4242
input_state[0, 0] = 1.0
4343
input_state[1, -1] = 1.0
4444

0 commit comments

Comments
 (0)