diff --git a/src/qibotn/backends/quimb.py b/src/qibotn/backends/quimb.py index 4c33c1a..0eefbad 100644 --- a/src/qibotn/backends/quimb.py +++ b/src/qibotn/backends/quimb.py @@ -252,7 +252,7 @@ def exp_value_observable_symbolic( expectation_value = 0.0 for opstr, sites, coeff in zip(operators_list, sites_list, coeffs_list): coeff = coeff.real - for label, site in zip(opstr, sites): + for label, site in zip(opstr, sites): op_matrix = qu.pauli(label.upper()) ket.gate_(op_matrix, site) exp_values = (bra & ket).contract(optimize="auto-hq").real @@ -311,7 +311,6 @@ def _qibo_circuit_to_quimb( return circ - CLASSES_ROOTS = {"numpy": "Numpy", "torch": "PyTorch", "jax": "Jax"} METHODS = {