QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.qcloud.QCloudJob Class Reference

Public Member Functions

None __init__ (self, str arg0)
 init(self: qcloud.QCloudJob, arg0: str) -> None
 
str job_id (self)
 job_id(self: qcloud.QCloudJob) -> str
 
 query (self, *args, **kwargs)
 query(self: qcloud.QCloudJob) -> QPanda::QCloudResult
 
 result (self, *args, **kwargs)
 result(self: qcloud.QCloudJob) -> QPanda::QCloudResult
 
JobStatus status (self)
 status(self: qcloud.QCloudJob) -> qcloud.JobStatus
 

Constructor & Destructor Documentation

◆ __init__()

None pyqpanda3.qcloud.QCloudJob.__init__ ( self,
str arg0 )

init(self: qcloud.QCloudJob, arg0: str) -> None

Initializes a QCloudJob with a job ID.

Parameters
[in]job_idThe ID of the quantum job.

Member Function Documentation

◆ job_id()

str pyqpanda3.qcloud.QCloudJob.job_id ( self)

job_id(self: qcloud.QCloudJob) -> str

Retrieves the job ID.

If the job ID is empty, throws a runtime error.

Returns
The job ID.

◆ query()

pyqpanda3.qcloud.QCloudJob.query ( self,
* args,
** kwargs )

query(self: qcloud.QCloudJob) -> QPanda::QCloudResult

Queries the quantum job for information.

Returns
A QCloudResult object containing the job query result.

◆ result()

pyqpanda3.qcloud.QCloudJob.result ( self,
* args,
** kwargs )

result(self: qcloud.QCloudJob) -> QPanda::QCloudResult

Retrieves the result of the quantum job.

Returns
A QCloudResult object containing the job result.

◆ status()

JobStatus pyqpanda3.qcloud.QCloudJob.status ( self)

status(self: qcloud.QCloudJob) -> qcloud.JobStatus

Retrieves the current status of the quantum job.

Returns
The status of the job as a JobStatus enumeration value.

The documentation for this class was generated from the following file: