Skip to content

Update tutorials to avoid deprecated messages #574

@woodsp-ibm

Description

@woodsp-ibm

Some tutorials have deprecation warnings where the code needs updating appropriately

  • 10_warm_start_qaoa

qc.draw("mpl")

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/qiskit/visualization/circuit/matplotlib.py:266: FutureWarning: The default matplotlib drawer scheme will be changed to "iqp" in a following release. To silence this warning, specify the current default explicitly as style="clifford", or the new default as style="iqp".
self._style, def_font_ratio = load_style(self._style)

  • 11_using_classical_optimization_solvers_and_models.

/tmp/ipykernel_20623/3830934741.py:10: DeprecationWarning: Model.display() is deprecated
gurobipy_model.display()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions