qml icon indicating copy to clipboard operation
qml copied to clipboard

[BUG] Update `qml.draw()` across demos.

Open josh146 opened this issue 4 years ago • 0 comments

In the latest version of PennyLane, qml.draw() defaults to drawing the QNode as is, without expanding templates.

However, some of the demos (including tutorial_qaoa_intro.py) use the circuit drawer to show how templates are expanded on devices.

Where applicable, demos should be updated to use qml.draw(qnode, expansion_strategy="device") if it is required. Note that demos that draw circuits without templates likely don't need this change.

josh146 avatar Nov 30 '21 14:11 josh146