Fix tests Aer 0.15 in the latest environments (#2223)

* qiskit 1.0.0rc1 -> 1.3.0b1

* test

* test

* fix tutorial

* add release note
This commit is contained in:
Jun Doi 2024-09-12 16:05:23 +09:00 committed by GitHub
parent b306b8398b
commit 707dbdf733
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 6 deletions

View File

@ -13,7 +13,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
python-version: ['3.8']
python-version: ['3.9']
steps:
- uses: actions/checkout@v4
with:
@ -50,7 +50,7 @@ jobs:
needs: [docs]
strategy:
matrix:
python-version: ['3.8']
python-version: ['3.9']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
@ -74,7 +74,6 @@ jobs:
pip install -U -r requirements-dev.txt -c constraints.txt
pip install -c constraints.txt git+https://github.com/Qiskit/qiskit
pip install -c constraints.txt .
pip install -U "qiskit-ibmq-provider" "z3-solver" "qiskit-ignis" "qiskit-aqua" "pyscf<1.7.4" "matplotlib>=3.3.0" jupyter pylatexenc nbsphinx cvxpy qiskit-sphinx-theme -c constraints.txt
sudo apt install -y graphviz pandoc libopenblas-dev
pip check
shell: bash
@ -82,7 +81,7 @@ jobs:
run: |
set -e
cd qiskit-tutorials
rm -rf tutorials/chemistry tutorials/circuits tutorials/circuits_advanced tutorials/finance tutorials/optimization tutorials/algorithms tutorials/operators tutorials/noise tutorials/machine_learning
rm -rf tutorials/circuits tutorials/circuits_advanced tutorials/algorithms tutorials/operators
sphinx-build -b html . _build/html
- uses: actions/upload-artifact@v4
with:

View File

@ -97,7 +97,7 @@ jobs:
qiskit-extra: [""]
include:
- python-version: "3.10"
qiskit-extra: "'qiskit>=1.0.0rc1'"
qiskit-extra: "'qiskit>=1.3.0b1'"
env:
AER_THRUST_BACKEND: OMP

View File

@ -144,7 +144,9 @@ class LocalNoisePass(TransformationPass):
if isinstance(new_op, QuantumCircuit):
# If the new op is a quantum circuit, compose its DAG with the new dag
# so that it is unrolled rather than added as an opaque instruction
new_dag.compose(circuit_to_dag(new_op), qubits=node.qargs) # never touch clbits
new_dag.compose(
circuit_to_dag(new_op), qubits=list(node.qargs)
) # never touch clbits
else:
# Otherwise append the instruction returned by the function
new_dag.apply_operation_back(new_op, qargs=node.qargs) # never touch cargs

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixed tutorial build failure of Python version and unused tutorials.
Upgraded test for Qiskit 1.0.0rc1 to 1.3.0b1 this will need protection rules
for Aer repository. Also fixed noise/passes/local_noise_pass.py needed
conversion from tuple to list