Skip to content

Commit ee69cba

Browse files
committed
Revised
1 parent 18ad73d commit ee69cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/incremental_twoqubit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def energy(params, structures, n, nlayers):
2525
for j in range(nlayers):
2626
for i in range(n - 1):
2727
matrix = structures[j, i] * tc.gates._ii_matrix + (
28-
1.0 - structures[j, i]
28+
1.0 - structures[j, i]
2929
) * (
3030
K.cos(params[2 * j + 1, i]) * tc.gates._ii_matrix
3131
+ 1.0j * K.sin(params[2 * j + 1, i]) * tc.gates._zz_matrix

0 commit comments

Comments
 (0)