cunqa.qjob

Contains objects that define and manage quantum emulation jobs.

The core of this module is the class QJob. These objects are created when a quantum job is sent to a virtual QPU, as a return of the run() method:

>>> qpu.run(circuit)
<cunqa.qjob.QJob object at XXXXXXXX>

Once it is created, the circuit is being simulated at the virtual QPU. QJob is the bridge between sending a circuit with instructions and recieving the results. Because of this, usually one wants to save this output in a variable:

>>> qjob = qpu.run(circuit)

Another functionality described in the submodule is the function gather(), which recieves a list of QJob objects and returns their results as Result objects.

>>> qjob_1 = qpu_1.run(circuit_1)
>>> qjob_2 = qpu_2.run(circuit_2)
>>> results = gather([qjob_1, qjob_2])

For further information on sending and gathering quantum jobs, chekout the Examples Galery.

Functions

gather

Function to get the results of several QJob objects.

Classes

QJob

Class to handle jobs sent to virtual QPUs.

Exceptions

QJobError

Exception for error during job submission to virtual QPUs.