cunqa.qjob.QJob
- class cunqa.qjob.QJob(qclient: cunqa.qclient.QClient, backend: Backend, circuit: dict | CunqaCircuit, **run_parameters: Any)
Bases:
object
Class to handle jobs sent to the simulator.
Methods
Asynchronous method to submit a job to the corresponding QClient.
Asynchronous method to upgrade the parameters in a previously submitted parametric circuit.
Attributes
Synchronous method to obtain the result of the job.
Method to obtain the time that the job took.
- property result
Synchronous method to obtain the result of the job. Note that this call depends on the job being finished, therefore is blocking.
- submit()
Asynchronous method to submit a job to the corresponding QClient.
- property time_taken
Method to obtain the time that the job took. It can also be obtained by QJob._result.time_taken.
- upgrade_parameters(parameters: list[float])
Asynchronous method to upgrade the parameters in a previously submitted parametric circuit.
- Args:
parameters (list[float]): list of parameters to assign to the parametrized circuit.