-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
URL to the relevant documentation
https://docs.quantum.ibm.com/guides/hello-world#step-2-optimize-the-circuits-and-operators
Select all that apply
- typo
- code bug
- out-of-date content
- broken link
- other
Describe the fix.
Add the importation of generate_preset_pass_manager
to facilitate copy paste of this section.
Otherwise as it is written very early in the initial importations, we might miss it if we ignore the initial setup and then get a missing lib error.
from qiskit_ibm_runtime import QiskitRuntimeService
**from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager**
It then mimics the previous case with from qiskit.quantum_info import SparsePauliOp
Thanks
Metadata
Metadata
Type
Projects
Status
No status