We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a46f16 commit 40814e3Copy full SHA for 40814e3
scripts/tfim_validation.py
@@ -295,15 +295,14 @@ def main():
295
m /= n_qubits
296
sqr_magnetization_0 += value * m * m
297
298
- c_magnetization, c_sqr_magnetization = 0, 0
+ c_sqr_magnetization = 0, 0
299
for p in range(1 << n_qubits):
300
perm = p
301
m = 0
302
for _ in range(n_qubits):
303
m += -1 if (perm & 1) else 1
304
perm >>= 1
305
306
- c_magnetization += control_probs[p] * m
307
c_sqr_magnetization += control_probs[p] * m * m
308
309
# Save the sum of squares and sum of square residuals on the magnetization curve values.
0 commit comments