Quantum Node¶
In hybrid computation, algorithms may consist of a mixture of classical and quantum components.
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.
Note
In PennyLane, quantum nodes can be constructed by using either the
qnode()
decorator, or the QNode()
constructor.
glossary/quantum_node
Download Python script
Download Notebook
View on GitHub