Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf committed Oct 24, 2024
1 parent c5f09db commit 120c6e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pytket/extensions/qiskit/qiskit_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,11 +1062,9 @@ def get_avg_characterisation(
dict[Node, list[list[float]]], characterisation["ReadoutErrors"]
)

avg: Callable[[dict[Any, float]], float] = lambda xs: sum(
avg: Callable[[dict[Any, float]], float] = lambda xs: sum( # noqa: E731
xs.values()
) / len( # noqa: E731
xs
)
) / len(xs)
avg_mat: Callable[[list[list[float]]], float] = ( # noqa: E731
lambda xs: (xs[0][1] + xs[1][0]) / 2.0
)
Expand Down

0 comments on commit 120c6e6

Please sign in to comment.