GenerativeNetwork.train

abstract GenerativeNetwork.train(quantum_instance=None, shots=None)[source]

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

Parameters
  • quantum_instance (QuantumInstance) – used to run generator network. Ignored for a classical network.

  • shots (int) – Number of shots for hardware or qasm execution. Ignored for classical network

Returns

generator loss and updated parameters.

Return type

dict

Raises

NotImplementedError – not implemented