Skip to content

Commit

Permalink
use Sequence instead of list in combine_results() in zne.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FarLab committed Aug 6, 2024
1 parent de55fc4 commit 9cdad90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mitiq/zne/zne.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def scaled_circuits(

def combine_results(
scale_factors: Sequence[float],
results: list[float],
extrapolation_method: Callable[[list[float], list[float]], float],
results: Sequence[float],
extrapolation_method: Callable[[Sequence[float], Sequence[float]], float],
) -> float:
"""Computes the error-mitigated expectation value associated to the
input results from executing the scaled circuits, via the application
Expand Down

0 comments on commit 9cdad90

Please sign in to comment.