Qiskit / qiskit-tutorials

A collection of Jupyter notebooks showing how to use the Qiskit SDK
Apache License 2.0
2.33k stars 1.29k forks source link

Update operator tutorial to avoid deprecated Pauli construction #1339

Closed mtreinish closed 2 years ago

mtreinish commented 2 years ago

Summary

This commit updates the operator tutorial to avoid the deprecated Pauli constructor kwarg, label. This has been deprecated since Qiskit Terra 0.17.0 and is pending removal in Qiskit/qiskit-terra#8070. The label kwarg isn't needed anymore as the Pauli string can just be input directly as the first positional argument and the Pauli object will be created just as with the label kwarg before.

Details and comments

review-notebook-app[bot] commented 2 years ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB