QuantumGenerator.get_output¶
- QuantumGenerator.get_output(quantum_instance, qc_state_in=None, 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.
- Parameters
quantum_instance (QuantumInstance) – Quantum Instance, used to run the generator circuit.
qc_state_in (QuantumCircuit) – deprecated
params (numpy.ndarray) – array or None, parameters which should be used to run the generator, if None use self._params
shots (int) – if not None use a number of shots that is different from the number set in quantum_instance
- Returns
generated samples, array: sample occurrence in percentage
- Return type
list