fixed issue with measure gates name and expectation function type hint
This commit is contained in:
@@ -45,7 +45,7 @@ GATE_MAP = {
|
|||||||
|
|
||||||
"fsim": "fsim",
|
"fsim": "fsim",
|
||||||
|
|
||||||
"m": "measure"
|
"measure": "measure"
|
||||||
}
|
}
|
||||||
|
|
||||||
class QuimbBackend(QibotnBackend, NumpyBackend):
|
class QuimbBackend(QibotnBackend, NumpyBackend):
|
||||||
@@ -193,7 +193,7 @@ class QuimbBackend(QibotnBackend, NumpyBackend):
|
|||||||
statevector=statevector,
|
statevector=statevector,
|
||||||
)
|
)
|
||||||
|
|
||||||
def expectation(self, circuit: Circuit, operators_list: list[str], sites_list: list[str], coeffs_list: list[str]):
|
def expectation(self, circuit, operators_list, sites_list, coeffs_list):
|
||||||
"""
|
"""
|
||||||
Compute the expectation value of a symbolic Hamiltonian on a quantum circuit using tensor network contraction.
|
Compute the expectation value of a symbolic Hamiltonian on a quantum circuit using tensor network contraction.
|
||||||
This method takes a Qibo circuit, converts it to a Quimb tensor network circuit, and evaluates the expectation value
|
This method takes a Qibo circuit, converts it to a Quimb tensor network circuit, and evaluates the expectation value
|
||||||
|
|||||||
Reference in New Issue
Block a user