Skip to content

Commit

Permalink
fixmypy (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf authored Oct 13, 2023
1 parent 582c2a3 commit 6fdab18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytket/extensions/pyquil/backends/forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion pytket/extensions/pyquil/pyquil_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fdab18

Please sign in to comment.