Skip to content

Commit 3356887

Browse files
committed
fixed types
1 parent cd732d3 commit 3356887

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aer_plugin/backends/aer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _exec_expval(self, circuit: QuantumCircuit) -> Results:
3030
result = estimator.run([(circuit, SparsePauliOp.from_list(obs))]).result()
3131

3232
# to ensure the expval result will be a flot (for mypy)
33-
return result[0].data.evs
33+
return result[0].data.evs # type: ignore
3434

3535
def _exec_counts(self, circuit: QuantumCircuit) -> Results:
3636
"""Extracts counts using AerSimulator directly"""

aer_plugin/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Metadata = Dict[Any, Any]
1313
ResultType = str
1414
QasmFilePath = str
15-
Results = Dict[str | int, float] | List[float]
15+
Results = Dict[str | int, float] | float
1616

1717

1818
def check_backend(func):

0 commit comments

Comments
 (0)