Skip to content

Commit 38b046e

Browse files
fix: fixed test
1 parent 92705f7 commit 38b046e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/execution/test_result.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
(JobType.STATE_VECTOR, 0.4),
1818
(JobType.STATE_VECTOR, []),
1919
(JobType.OBSERVABLE, []),
20-
(JobType.OBSERVABLE, StateVector([1])),
20+
(JobType.OBSERVABLE, StateVector([1])), # pyright: ignore[reportArgumentType]
2121
(JobType.SAMPLE, 0.4),
22-
(JobType.SAMPLE, StateVector([1])),
22+
(JobType.SAMPLE, StateVector([1])), # pyright: ignore[reportArgumentType]
2323
],
2424
)
2525
def test_result_wrong_type(job_type: JobType, data: float | StateVector | list[Sample]):
@@ -94,6 +94,7 @@ def test_result_right_type(job_type: JobType, data: float | StateVector | list[S
9494
"""Result: IBMDevice, AER_SIMULATOR
9595
Counts: [135, 226, 8, 231]
9696
Probabilities: [0.225 0.37666667 0.01333333 0.385 ]
97+
Samples:
9798
State: 00, Index: 0, Count: 135, Probability: 0.225
9899
State: 01, Index: 1, Count: 226, Probability: 0.37666666666666665
99100
State: 10, Index: 2, Count: 8, Probability: 0.013333333333333334

0 commit comments

Comments
 (0)