- QuantumGenerator.get_output(quantum_instance, params=None, shots=None)¶
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.
QuantumInstance) – Quantum Instance, used to run the generator circuit.
ndarray]) – array or None, parameters which should be used to run the generator, if None use self._params
int]) – if not None use a number of shots that is different from the number set in quantum_instance
sample occurrence in percentage
- 반환 형식
generated samples, array