GenerativeNetwork

class GenerativeNetwork[fuente]

Bases: ABC

Base class for generative Quantum and Classical Neural Networks.

This method should initialize the module, but raise an exception if a required component of the module is not available.

Attributes

parameter_values

Get parameter values from the generator

Methods

get_output(quantum_instance[, params, shots])

Apply quantum/classical neural network to given input and get the respective output

loss()

Loss function used for optimization

train([quantum_instance, shots])

Perform one training step w.r.t to the generator's parameters