Fix custom-transpiler-pass notebook (#1633)

The `custom-transpiler-pass.ipynb` notebook was using a
[deprecated](https://numpy.org/devdocs/release/1.25.0-notes.html#deprecations)
numpy function called `alltrue`. This PR changes the notebook to use
instead the function `all`.

In this
[CI](https://github.com/Qiskit/documentation/actions/runs/9762810433/job/26947134720?pr=1631)
run you can find the notebook failing because of the deprecation.
This commit is contained in:
Arnau Casau 2024-07-02 17:00:42 +02:00 committed by GitHub
parent 2b116d85f2
commit e095d04409
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@
}
],
"source": [
"np.alltrue([Operator(twirled_qc).equiv(qc) for twirled_qc in twirled_qcs])"
"np.all([Operator(twirled_qc).equiv(qc) for twirled_qc in twirled_qcs])"
]
},
{