qml.qnn

This module contains tools dedicated to machine learning, including functionality for converting PennyLane QNodes into layers that are compatible with PyTorch, and estimators that assist with classically training quantum circuits.

Note

Check out our Keras and Torch tutorials for further details.

Classes

TorchLayer

Converts a QNode to a Torch layer.

Estimators

iqp_expval(ops, weights, pattern, num_wires, ...)

Estimates the expectation values of a batch of Pauli-Z type operators for a parameterized IQP circuit.