mirror of https://github.com/Qiskit/qiskit-aer.git
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:
parent
b306b8398b
commit
707dbdf733
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue