Skip to content

Commit 501a10d

Browse files
committed
feat(sampler): fix sampling base conversion
1 parent 86b2992 commit 501a10d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

qiskit_scaleway/primitives/sampler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import numpy as np
1515
import re
1616

17+
from numpy.typing import NDArray
18+
1719
from qiskit.primitives.backend_sampler_v2 import (
1820
BackendSamplerV2,
1921
_MeasureInfo,
@@ -102,7 +104,7 @@ def _postprocess_pub(
102104
)
103105

104106

105-
def _memory_array(results: list[list[str]], num_bytes: int) -> np.NDArray[np.uint8]:
107+
def _memory_array(results: list[list[str]], num_bytes: int) -> NDArray[np.uint8]:
106108
"""Converts the memory data into an array in an unpacked way."""
107109
lst = []
108110
# Heuristic: check only the first result format

tests/test_aqt_multiple_circuits.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
from qio.utils.circuit import random_square_qiskit_circuit
2020

21+
2122
def test_aqt_multiple_circuits():
2223
provider = ScalewayProvider(
2324
project_id=os.environ["QISKIT_SCALEWAY_PROJECT_ID"],

0 commit comments

Comments
 (0)