Quantum Node

In hybrid computation, algorithms may consist of a mixture of classical and quantum components.

../_images/hybrid_graph1.png

In PennyLane, these units of quantum computations are represented using an object called a quantum node, or QNode(). A quantum node consists of a quantum function (such as a variational circuit), and a device on which it executes.

../_images/qnode.svg

Note

In PennyLane, quantum nodes can be constructed by using either the qnode() decorator, or the QNode() constructor.