qiskit.aqua.algorithms.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 (
Union
[UnivariateVariationalDistribution
,MultivariateVariationalDistribution
,QuantumCircuit
,None
]) – parameterized quantum circuit which sets the structure of the quantum generatorgenerator_init_params (
Optional
[ndarray
]) – initial parameters for the generator circuitgenerator_optimizer (
Optional
[Optimizer
]) – optimizer to be used for the training of the generatorgenerator_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
AquaError – invalid input