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



QuantumGenerator.train

QuantumGenerator.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 the generator circuit.

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

Returns

generator loss(float) and updated parameters (array).

Return type

dict