cunqa.mappers.QPUCircuitMapper

class cunqa.mappers.QPUCircuitMapper(qpus, ansatz, transpile=False, initial_layout=None, **run_parameters)

Bases: object

Class to map the function qpu.QPU.run() to a list of QPUs.

Methods

__call__(func, population)

Callable method to map the function to the QPUs.

Args:

func (func): function to be mapped to the QPUs. It must take as argument the an object <class ‘qjob.Result’>.

params (list[list]): population of vectors to be mapped to the circuits sent to the QPUs.

Return:

List of the results of the function applied to the output of the circuits sent to the QPUs.