nexus_worker.main

Module Contents

Functions

setup_project

execute_circuits

upload, compile, and execute circuits

get_backend_results

make list of backend results form execute_job_ref

submit

check_status

get_results

Data

API

nexus_worker.main.logger = 'getLogger(...)'
nexus_worker.main.worker = 'Worker(...)'
nexus_worker.main.setup_project()
nexus_worker.main.execute_circuits(list_circ: list[pytket._tket.circuit.Circuit], n_shots: int, backend_name: str, project_name: str) qnexus.models.references.ExecuteJobRef

upload, compile, and execute circuits

nexus_worker.main.get_backend_results(execute_job_ref: qnexus.models.references.ExecuteJobRef) list[pytket.backends.backendresult.BackendResult]

make list of backend results form execute_job_ref

nexus_worker.main.submit(circuits: list[pytket._tket.circuit.Circuit], n_shots: int) qnexus.models.references.ExecuteJobRef
nexus_worker.main.check_status(execute_ref: qnexus.models.references.ExecuteJobRef) str
nexus_worker.main.get_results(execute_ref: qnexus.models.references.ExecuteJobRef) list[pytket.backends.backendresult.BackendResult]