|
17 | 17 | (JobType.STATE_VECTOR, 0.4),
|
18 | 18 | (JobType.STATE_VECTOR, []),
|
19 | 19 | (JobType.OBSERVABLE, []),
|
20 |
| - (JobType.OBSERVABLE, StateVector([1])), |
| 20 | + (JobType.OBSERVABLE, StateVector([1])), # pyright: ignore[reportArgumentType] |
21 | 21 | (JobType.SAMPLE, 0.4),
|
22 |
| - (JobType.SAMPLE, StateVector([1])), |
| 22 | + (JobType.SAMPLE, StateVector([1])), # pyright: ignore[reportArgumentType] |
23 | 23 | ],
|
24 | 24 | )
|
25 | 25 | 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
|
94 | 94 | """Result: IBMDevice, AER_SIMULATOR
|
95 | 95 | Counts: [135, 226, 8, 231]
|
96 | 96 | Probabilities: [0.225 0.37666667 0.01333333 0.385 ]
|
| 97 | + Samples: |
97 | 98 | State: 00, Index: 0, Count: 135, Probability: 0.225
|
98 | 99 | State: 01, Index: 1, Count: 226, Probability: 0.37666666666666665
|
99 | 100 | State: 10, Index: 2, Count: 8, Probability: 0.013333333333333334
|
|
0 commit comments