English
Languages
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



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.

Parameters
  • 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._params

  • shots (Optional[int]) – if not None use a number of shots that is different from the number set in quantum_instance

Returns

sample occurrence in percentage

Return type

generated samples, array