Skip to main content

Haiqu.get_circuit(circuit_id: str) → CircuitModel

Get a circuit by ID.
  • Parameters: circuit_id (str) — The ID of the circuit stored in the Haiqu cloud.
  • Returns: The requested circuit.
  • Return type: CircuitModel

Examples

>>> haiqu.get_circuit(circuit_id)
Haiqu Circuit 'circuit-123'

Haiqu.get_job(job_id: str) → AnalyticsJobModel | BaseJobModel | DataLoadingJobModel | LocalJobModel | RunJobModel | StateCompressionJobModel | TranspilationJobModel

Get a job by ID.
  • Parameters: job_id (str) — The ID of the job stored in the Haiqu cloud.
  • Returns: The requested job.
  • Return type: JOB_MODELS

Examples

>>> haiqu.get_job(job_id)
LocalJobModel 'Local job 12345678-1234-5678-1234-567812345678'
Run haiqu.list_jobs() to check its progress and access it by ID as
haiqu.get_job("jb-abcdefab-cdef-abcd-efab-cdefabcdefab").
Check further progress via: job.progress(), job.result()