We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ad73d commit ee69cbaCopy full SHA for ee69cba
examples/incremental_twoqubit.py
@@ -25,7 +25,7 @@ def energy(params, structures, n, nlayers):
25
for j in range(nlayers):
26
for i in range(n - 1):
27
matrix = structures[j, i] * tc.gates._ii_matrix + (
28
- 1.0 - structures[j, i]
+ 1.0 - structures[j, i]
29
) * (
30
K.cos(params[2 * j + 1, i]) * tc.gates._ii_matrix
31
+ 1.0j * K.sin(params[2 * j + 1, i]) * tc.gates._zz_matrix
0 commit comments