Skip to content
#

qml

Here are 1,308 public repositories matching this topic...

pennylane
glassnotes
glassnotes commented Nov 25, 2021

Feature details

Due to the similarity, it is easy to confuse qml.X and qml.PauliX, especially since other methods of specifying circuits, e.g., QASM, use x for PauliX. But if a user uses qml.X in their circuit on a qubit device, nothing happens to inform them that the incorrect operation is being used:

@qml.qnode(dev)
def circ():
    qml.PauliX(wires=0)
    qml.Hada
enhancement good first issue

Improve this page

Add a description, image, and links to the qml topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the qml topic, visit your repo's landing page and select "manage topics."

Learn more