Skip to content

Commit d08150c

Browse files
committed
Unit tests passing on staging except for noise_model which is not present on staging right now.
1 parent 828a53c commit d08150c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

qiskit_scaleway/primitives/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
from .estimator import Estimator
15-
from .estimator_v1 import Estimator as EstimatorV1
1615
from .sampler import Sampler

tests/test_sampler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
import numpy as np
1616
import random
1717

18-
from qiskit import transpile
19-
from qiskit.circuit.library import IQP
18+
from qiskit.circuit.library import iqp
2019
from qiskit.quantum_info import random_hermitian
2120

2221
from qiskit_scaleway import ScalewayProvider
@@ -47,11 +46,12 @@ def test_sampler():
4746

4847
n_qubits = 10
4948
mat = np.real(random_hermitian(n_qubits, seed=1234))
50-
circuit = IQP(mat)
49+
circuit = iqp(mat)
5150
circuit.measure_all()
5251

53-
isa_circuit = transpile(circuit, backend=backend, optimization_level=1)
54-
job = sampler.run([isa_circuit], shots=100)
52+
# isa_circuit = transpile(circuit, backend=backend, optimization_level=1)
53+
# job = sampler.run([isa_circuit], shots=100)
54+
job = sampler.run([circuit], shots=100)
5555
result = job.result()
5656

5757
assert result is not None

0 commit comments

Comments
 (0)