Repository: qutip/qutip-qip (language: python)

Issue:
Drop support of Python=3.7 and 3.8
The minimum supported Python version is now 3.9


Discussion / hints:

Fix patch:
diff --git a/doc/requirements.txt b/doc/requirements.txt
index 0952d588..52e7d953 100644
--- a/doc/requirements.txt
+++ b/doc/requirements.txt
@@ -11,4 +11,5 @@ docutils==0.17.1
 sphinxcontrib-bibtex==2.4.2
 pyqir-generator==0.6.2
 pyqir-parser==0.6.2
-qiskit==0.37.2
\ No newline at end of file
+qiskit==0.46.1
+qiskit-aer==0.14.0.1
diff --git a/setup.cfg b/setup.cfg
index eae11a4e..02384518 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -48,4 +48,5 @@ full =
     %(tests)s
     %(control)s
 qiskit = 
-    qiskit>=0.36.2
+    qiskit<1.0.0
+    qiskit_aer


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4d31aad4..3a375928 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -36,19 +36,19 @@ jobs:
           - case-name: qiskit+qir
             os: windows-latest
             qutip-version: ''
-            qiskit-version: '==0.36.*'
+            qiskit-version: '==0.46.*'
             pyqir-version: '==0.6.2'
             python-version: '3.9'
           - case-name: qiskit+qir
             os: macOS-latest
             qutip-version: ''
-            qiskit-version: '==0.36.*'
+            qiskit-version: '==0.46.*'
             pyqir-version: '==0.6.2'
             python-version: '3.9'
           - case-name: qiskit+qir
             os: ubuntu-latest
             qutip-version: ''
-            qiskit-version: '==0.36.*'
+            qiskit-version: '==0.46.*'
             pyqir-version: '==0.6.2'
             python-version: '3.9'
 
@@ -70,7 +70,7 @@ jobs:
 
     - name: Install Qiskit from PyPI
       if: ${{ matrix.qiskit-version != '' }}
-      run: python -m pip install 'qiskit${{ matrix.qiskit-version }}'
+      run: python -m pip install 'qiskit${{ matrix.qiskit-version }}' 'qiskit-aer==0.14.0.1'
 
     - name: Install PyQIR from PyPI
       if: ${{ matrix.pyqir-version != '' }}
diff --git a/tests/pytest.ini b/tests/pytest.ini
index 97c5f517..fdd79f63 100644
--- a/tests/pytest.ini
+++ b/tests/pytest.ini
@@ -12,3 +12,5 @@ filterwarnings =
     ignore:matplotlib not found:UserWarning
     ignore:the imp module is deprecated in favour of importlib:DeprecationWarning
     ignore:Dedicated options class are no longer needed, options should be passed as dict to solvers.:FutureWarning
+    ignore::DeprecationWarning:qiskit.utils.algorithm_globals:
+
diff --git a/tests/test_qiskit.py b/tests/test_qiskit.py
index a1aeb2c9..c2168021 100644
--- a/tests/test_qiskit.py
+++ b/tests/test_qiskit.py
@@ -9,25 +9,21 @@
     DispersiveCavityQED,
 )
 
-try:
-    from qiskit import QuantumCircuit
-    from qiskit.providers.aer import AerSimulator
-    from qutip_qip.qiskit.provider import (
-        QiskitCircuitSimulator,
-        QiskitPulseSimulator,
-    )
-    from qutip_qip.qiskit.converter import (
-        convert_qiskit_circuit,
-        _get_qutip_index,
-    )
-except ImportError:
-    pass
-
-
 # will skip tests in this entire file
 # if qiskit is not installed
 pytest.importorskip("qiskit")
 
+from qiskit import QuantumCircuit
+from qiskit_aer import AerSimulator
+from qutip_qip.qiskit.provider import (
+    QiskitCircuitSimulator,
+    QiskitPulseSimulator,
+)
+from qutip_qip.qiskit.converter import (
+    convert_qiskit_circuit,
+    _get_qutip_index,
+)
+
 
 class TestConverter:
     """