QuantumGenerator.get_output¶
- 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.
- 매개변수
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
- 반환
sample occurrence in percentage
- 반환 형식
generated samples, array