qunicorn_core.api.jobmanager package

Submodules

qunicorn_core.api.jobmanager.job_pilots module

class qunicorn_core.api.jobmanager.job_pilots.AWSPilot(name)

Bases: Pilot

The AWS Pilot

execute(job)
transpile(job)

Transpile job on an IBM backend, needs a device_id

class qunicorn_core.api.jobmanager.job_pilots.QiskitPilot(name)

Bases: Pilot

The Qiskit Pilot

execute(job)

Execute a job on an IBM backend using the Qiskit Pilot

transpile(job)

Transpile job on an IBM backend, needs a device_id

qunicorn_core.api.jobmanager.jobs module

Module containing the routes of the Taskmanager API.

class qunicorn_core.api.jobmanager.jobs.JobDetailView

Bases: MethodView

Jobs endpoint for a single job.

delete(job_id: str)

Delete job data via id.

get(job_id: str)

Get the urls for the jobmanager api for job control.

methods: ClassVar[Optional[Collection[str]]] = {'DELETE', 'GET', 'POST', 'PUT'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

post(job_id: str)

Cancel a job execution via id.

put(job_id: str)

Pause a job via id.

class qunicorn_core.api.jobmanager.jobs.JobID(id: str, description: str, taskmode: int)

Bases: object

description: str
id: str
taskmode: int
class qunicorn_core.api.jobmanager.jobs.JobIDView

Bases: MethodView

Jobs endpoint for collection of all jobs.

get()

Get registered job list.

methods: ClassVar[Optional[Collection[str]]] = {'GET', 'POST'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

post(new_job_data: dict)

Create/Register new job.

class qunicorn_core.api.jobmanager.jobs.JobRegister(circuit: str, provider: str, qpu: str, credentials: dict, shots: int, circuit_format: str)

Bases: object

circuit: str
circuit_format: str
credentials: dict
provider: str
qpu: str
shots: int

qunicorn_core.api.jobmanager.pilot_base module

class qunicorn_core.api.jobmanager.pilot_base.Pilot(name)

Bases: object

Base class for Pilots

execute(job)

qunicorn_core.api.jobmanager.root module

Module containing the root endpoint of the JobMANAGER API.

class qunicorn_core.api.jobmanager.root.RootData(root: str)

Bases: object

root: str

Module contents

Module containing the JobManager API.