Skip to content

standardize how we write import statements #2166

@acastellane

Description

@acastellane

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

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions