Skip to content

Commit

Permalink
Cast a float for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
bdg221 committed Dec 20, 2024
1 parent 7301801 commit 52f93a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mitiq/ddd/ddd.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def generate_ddd_value(results: list[float]) -> float:
Returns:
The expectation value estimated with DDD.
"""
return np.average(results)
return float(np.average(results))


def generate_circuits_with_ddd(
Expand Down

0 comments on commit 52f93a9

Please sign in to comment.