Job Class

Thin wrapper around an Azure Quantum Job that supports returning results in Cirq format.

Construct a Job.

Inheritance
builtins.object
Job

Constructor

Job(azure_job: AzureJob, program: cirq.Circuit, measurement_dict: dict = None)

Parameters

Name Description
azure_job
Required
Job

Job

program
Required
<xref:cirq.Circuit>

Cirq program

measurement_dict

Measurments

Default value: None

Methods

cancel

Cancel the given job.

delete

Delete the given job.

job_id

Returns the job id (UID) for the job.

measurement_dict

Returns a dictionary of measurement keys to target qubit index.

name

Returns the name of the job which was supplied during job creation.

num_qubits

Returns the number of qubits for the job.

repetitions

Returns the number of repetitions for the job.

results

Poll the Azure Quantum API for results.

status

Gets the current status of the job.

target

Returns the target where the job was run.

cancel

Cancel the given job.

cancel()

delete

Delete the given job.

delete()

job_id

Returns the job id (UID) for the job.

job_id() -> str

measurement_dict

Returns a dictionary of measurement keys to target qubit index.

measurement_dict() -> Dict[str, Sequence[int]]

name

Returns the name of the job which was supplied during job creation.

name() -> str

num_qubits

Returns the number of qubits for the job.

num_qubits() -> int

repetitions

Returns the number of repetitions for the job.

repetitions() -> int

results

Poll the Azure Quantum API for results.

results(timeout_seconds: int = 7200) -> cirq.Result

Parameters

Name Description
timeout_seconds
Default value: 7200

status

Gets the current status of the job.

status() -> str

target

Returns the target where the job was run.

target() -> str