[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user