cunqa.qjob.gather

cunqa.qjob.gather(qjobs: list[QJob]) list[Result]

Function to get the results of several QJob objects.

Once the jobs are running:

>>> results = gather(qjobs)

This is a blocking call, results will be called sequentialy in . Since they are being run simultaneously, even if the first one on the list takes the longest, when it finishes the rest would have been done, so just the small overhead from calling them will be added.

Warning

Since this is mainly a for loop, the order must be respected when submiting jobs to the same virtual QPU.

Parameters:

qjobs (list[QJob]) – list of objects to get the result from.

Returns:

List of Result objects.