diff --git a/pyproject.toml b/pyproject.toml index 1a6f0e536..7e5a4b6a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,9 +30,9 @@ dependencies = [ "numpy>=1.23.0", "scipy>=1.5.2", "rustworkx>=0.14.0", - "qiskit-aer>=0.13.3", + "qiskit-aer>=0.14.0.1", "qiskit>=1.0.0, <2.0", - "qiskit-ibm-runtime>=0.21.0", + "qiskit-ibm-runtime>=0.23.0", ] [project.optional-dependencies] diff --git a/releasenotes/notes/bump-dependency-versions-d5dc3b10ba842f2d.yaml b/releasenotes/notes/bump-dependency-versions-d5dc3b10ba842f2d.yaml index 010b414f5..5093794fc 100644 --- a/releasenotes/notes/bump-dependency-versions-d5dc3b10ba842f2d.yaml +++ b/releasenotes/notes/bump-dependency-versions-d5dc3b10ba842f2d.yaml @@ -2,5 +2,5 @@ upgrade: - | CKT now requires updated versions of some dependencies: ``qiskit`` - 1.0 or later, ``qiskit-aer`` 0.13.3 or later, and - ``qiskit-ibm-runtime`` 0.21.0 or later. + 1.0 or later, ``qiskit-aer`` 0.14.0 or later, and + ``qiskit-ibm-runtime`` 0.23.0 or later. diff --git a/test/cutting/test_cutting_workflows.py b/test/cutting/test_cutting_workflows.py index b74d2db47..25d361320 100644 --- a/test/cutting/test_cutting_workflows.py +++ b/test/cutting/test_cutting_workflows.py @@ -20,13 +20,7 @@ from qiskit.quantum_info import PauliList from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager from qiskit.providers.fake_provider import GenericBackendV2 - -try: - from qiskit.primitives import BackendSamplerV2 -except ImportError: - backendsamplerv2_available = False -else: - backendsamplerv2_available = True +from qiskit_ibm_runtime import SamplerV2 from qiskit_aer.primitives import Sampler from qiskit_aer import AerSimulator @@ -190,10 +184,6 @@ def test_wire_cut_workflow_with_reused_qubits(): assert "reset" not in subexpt.count_ops() -@pytest.mark.skipif( - not backendsamplerv2_available, - reason="BackendSamplerV2 is not available in Qiskit < 1.1", -) def test_reconstruction_with_samplerv2(): """Smoke test for reconstruction using samplerv2""" qc = QuantumCircuit(4) @@ -213,11 +203,9 @@ def test_reconstruction_with_samplerv2(): num_samples=100, ) - # Use BackendSamplerV2 with AerSimulator, following - # https://github.com/Qiskit/qiskit-aer/issues/2078#issuecomment-1971498534 + # Use SamplerV2 in local mode with AerSimulator samplers = { - label: BackendSamplerV2(backend=AerSimulator()) - for label in subexperiments.keys() + label: SamplerV2(backend=AerSimulator()) for label in subexperiments.keys() } results = { label: sampler.run(subexperiments[label], shots=128).result()