SamplerSimulation#
- class iqm.qaoa.backends.SamplerSimulation(simulator=AerSimulator('aer_simulator_statevector'))[source]#
Bases:
SamplerBackend
A sampler that simulates the QAOA circuit in
qiskit
.Currently the only simulator we use is the
AerSimulator
, butSamplerSimulation
is defined to allow the use of other simulators too.- Parameters:
simulator (AerSimulator) – A simulator, (currently) assumed to be an object of class
AerSimulator
.
Methods
sample
(qaoa_object, shots)Samples from the QAOA using a simulation.