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



QGAN.set_generator

QGAN.set_generator(generator_circuit=None, generator_init_params=None, generator_optimizer=None, generator_gradient=None)[source]

Initialize generator.

Parameters
  • generator_circuit (Optional[QuantumCircuit]) – parameterized quantum circuit which sets the structure of the quantum generator

  • generator_init_params (Optional[ndarray]) – initial parameters for the generator circuit

  • generator_optimizer (Optional[Optimizer]) – optimizer to be used for the training of the generator

  • generator_gradient (Union[Callable, Gradient, None]) – A Gradient object, or a function returning partial derivatives of the loss function w.r.t. the generator variational params.

Raises

QiskitMachineLearningError – invalid input