QuantumGenerator.get_output¶
- QuantumGenerator.get_output(quantum_instance, params=None, shots=None)[source]¶
Get classical data samples from the generator. Running the quantum generator circuit results in a quantum state. To train this generator with a classical discriminator, we need to sample classical outputs by measuring the quantum state and mapping them to feature space defined by the training data.
- Paramètres
quantum_instance (
QuantumInstance
) – Quantum Instance, used to run the generator circuit.params (
Optional
[ndarray
]) – array or None, parameters which should be used to run the generator, if None use self._paramsshots (
Optional
[int
]) – if not None use a number of shots that is different from the number set in quantum_instance
- Renvoie
sample occurrence in percentage
- Type renvoyé
generated samples, array