Skip to content

Coefficients#

A characteristic property of any Fourier model are its coefficients. Our package can, given a model, calculate the corresponding coefficients by utilizing the Pennylane Fourier Coefficients method.

In the simplest case, this could look as follows:

from qml_essentials.model import Model
from qml_essentials.coefficients import Coefficients

model = Model(
            n_qubits=2
            n_layers=1
            circuit_type="HardwareEfficient",
        )

coeffs = Coefficients.sample_coefficients(model)