English
Languages
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



GenerativeNetwork

class GenerativeNetwork[source]

Bases: abc.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