Skip to content

Commit

Permalink
Use combine_results to match ZNE and PEC
Browse files Browse the repository at this point in the history
  • Loading branch information
bdg221 committed Dec 20, 2024
1 parent 52f93a9 commit a23f7b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mitiq/ddd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
insert_ddd_sequences,
)

from mitiq.ddd.ddd import execute_with_ddd, mitigate_executor, ddd_decorator, generate_circuits_with_ddd, generate_ddd_value
from mitiq.ddd.ddd import execute_with_ddd, mitigate_executor, ddd_decorator, generate_circuits_with_ddd, combine_results
4 changes: 2 additions & 2 deletions mitiq/ddd/ddd.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def execute_with_ddd(

assert len(results) == num_trials

ddd_value = generate_ddd_value(results)
ddd_value = combine_results(results)

if not full_output:
return ddd_value
Expand All @@ -85,7 +85,7 @@ def execute_with_ddd(
return ddd_value, ddd_data


def generate_ddd_value(results: list[float]) -> float:
def combine_results(results: list[float]) -> float:
"""Averages over the DDD results to get the expectation value from using
DDD.
Expand Down

0 comments on commit a23f7b7

Please sign in to comment.