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:
parent
2b116d85f2
commit
e095d04409
|
@ -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])"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue