diff --git a/pytket/extensions/pyquil/backends/forest.py b/pytket/extensions/pyquil/backends/forest.py index 9f1f17f..884f87c 100644 --- a/pytket/extensions/pyquil/backends/forest.py +++ b/pytket/extensions/pyquil/backends/forest.py @@ -450,7 +450,7 @@ def get_operator_expectation_value( """ prog = tk_to_pyquil(state_circuit) pauli_sum = PauliSum( - [self._gen_PauliTerm(term, coeff) for term, coeff in operator._dict.items()] + [self._gen_PauliTerm(term, coeff) for term, coeff in operator._dict.items()] # type: ignore ) return complex(self._sim.expectation(prog, pauli_sum)) diff --git a/pytket/extensions/pyquil/pyquil_convert.py b/pytket/extensions/pyquil/pyquil_convert.py index cea0f15..f1b8ecc 100644 --- a/pytket/extensions/pyquil/pyquil_convert.py +++ b/pytket/extensions/pyquil/pyquil_convert.py @@ -179,7 +179,7 @@ def pyquil_to_tk(prog: Program) -> Circuit: ) from error qubits = [qmap[q.index] for q in i.qubits] params: list[Union[Expr, float]] = [param_from_pyquil(p) for p in i.params] # type: ignore - tkc.add_gate(optype, params, qubits) # type: ignore + tkc.add_gate(optype, params, qubits) elif isinstance(i, Measurement): qubit = qmap[i.qubit.index] reg = cregmap[i.classical_reg.name] # type: ignore