GenerativeNetwork

class GenerativeNetwork[source]

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.

Methods

GenerativeNetwork.get_output(…)

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

GenerativeNetwork.loss()

Loss function used for optimization

GenerativeNetwork.set_seed(seed)

Set seed.

GenerativeNetwork.train([quantum_instance, …])

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