references¶
- class qnexus.models.references.DataframableList(
- iterable: Iterable[T],
Bases:
list[T]A Python list that implements the Dataframable protocol.
- class qnexus.circuits.CircuitRef(
- *,
- id: UUID,
- annotations: Annotations,
- project: ProjectRef,
- type: Literal['CircuitRef'] = 'CircuitRef',
Proxy object to a Circuit in Nexus.
- class qnexus.jobs.CompileJobRef(
- *,
- id: UUID,
- annotations: Annotations,
- job_type: JobType = JobType.COMPILE,
- last_status: JobStatusEnum,
- last_message: str,
- last_status_detail: JobStatus | None = None,
- project: ProjectRef,
- system: SystemRef | None = None,
- backend_config_store: Annotated[AerConfig | AerStateConfig | AerUnitaryConfig | BraketConfig | QuantinuumConfig | IBMQConfig | IBMQEmulatorConfig | QulacsConfig | SeleneConfig | SelenePlusConfig | HeliosConfig, FieldInfo(annotation=NoneType, required=True, discriminator='type')] | None = None,
- type: Literal['CompileJobRef'] = 'CompileJobRef',
Proxy object to a CompileJob in Nexus.
- df() DataFrame¶
Present in a pandas DataFrame.
- class qnexus.models.references.CompilationResultRef(
- *,
- id: UUID,
- annotations: Annotations,
- project: ProjectRef,
- last_status_detail: JobStatus | None = None,
- job_item_id: UUID | None = None,
- job_item_integer_id: int | None = None,
- type: Literal['CompilationResultRef'] = 'CompilationResultRef',
Proxy object to the results of a circuit compilation in Nexus.
- get_input() CircuitRef[source]¶
Get the CircuitRef of the original circuit.
- get_output() CircuitRef[source]¶
Get the CircuitRef of the compiled circuit.
- get_passes() DataframableList[CompilationPassRef][source]¶
Get information on the compilation passes and the output circuits (if available).
- class qnexus.models.references.CompilationPassRef(
- *,
- id: UUID,
- pass_name: str,
- input_circuit: CircuitRef,
- output_circuit: CircuitRef,
- type: Literal['CompilationPassRef'] = 'CompilationPassRef',
Proxy object to a compilation pass that was applied on a circuit in Nexus.
- get_input() CircuitRef[source]¶
Get the CircuitRef of the original circuit.
- get_output() CircuitRef[source]¶
Get the CircuitRef of the compiled circuit.
- class qnexus.models.references.ExecuteJobRef(
- *,
- id: UUID,
- annotations: Annotations,
- job_type: JobType = JobType.EXECUTE,
- last_status: JobStatusEnum,
- last_message: str,
- last_status_detail: JobStatus | None = None,
- project: ProjectRef,
- system: SystemRef | None = None,
- backend_config_store: Annotated[AerConfig | AerStateConfig | AerUnitaryConfig | BraketConfig | QuantinuumConfig | IBMQConfig | IBMQEmulatorConfig | QulacsConfig | SeleneConfig | SelenePlusConfig | HeliosConfig, FieldInfo(annotation=NoneType, required=True, discriminator='type')] | None = None,
- type: Literal['ExecuteJobRef'] = 'ExecuteJobRef',
Proxy object to an ExecuteJob in Nexus.
- df() DataFrame¶
Present in a pandas DataFrame.
- class qnexus.models.references.ExecutionResultRef(
- *,
- id: UUID,
- annotations: Annotations,
- project: ProjectRef,
- result_type: ResultType = ResultType.PYTKET,
- cost: float | None = None,
- last_status_detail: JobStatus | None = None,
- job_item_id: UUID | None = None,
- job_item_integer_id: int | None = None,
- type: Literal['ExecutionResultRef'] = 'ExecutionResultRef',
Proxy object to the results of a circuit execution through Nexus.
- download_backend_info() BackendInfo[source]¶
Get a copy of the pytket BackendInfo.
- download_result(
- version: ResultVersions = ResultVersions.DEFAULT,
Get a copy of the result of the program execution.
- get_input() CircuitRef | HUGRRef | QIRRef[source]¶
Get the Program Ref of the input program.
- class qnexus.jobs.JobRef(
- *,
- id: UUID,
- annotations: Annotations,
- job_type: JobType,
- last_status: JobStatusEnum,
- last_message: str,
- last_status_detail: JobStatus | None = None,
- project: ProjectRef,
- system: SystemRef | None = None,
- backend_config_store: Annotated[AerConfig | AerStateConfig | AerUnitaryConfig | BraketConfig | QuantinuumConfig | IBMQConfig | IBMQEmulatorConfig | QulacsConfig | SeleneConfig | SelenePlusConfig | HeliosConfig, FieldInfo(annotation=NoneType, required=True, discriminator='type')] | None = None,
- type: Literal['JobRef', 'CompileJobRef', 'ExecuteJobRef'] = 'JobRef',
Proxy object to a Job in Nexus.
- class qnexus.models.references.IncompleteJobItemRef(
- *,
- id: UUID = UUID('00000000-0000-0000-0000-000000000000'),
- annotations: Annotations,
- job_item_id: UUID | None = None,
- job_item_integer_id: int | None = None,
- program_type: ProgramType = ProgramType.CIRCUIT,
- program_id: UUID | None = None,
- project: ProjectRef,
- job_type: JobType,
- last_status: JobStatusEnum,
- last_message: str,
- last_status_detail: JobStatus | None = None,
- type: Literal['IncompleteJobItemRef'] = 'IncompleteJobItemRef',
Proxy object to a Job Item in Nexus that is not complete.
- class qnexus.projects.ProjectRef(
- *,
- id: UUID,
- annotations: Annotations,
- contents_modified: datetime,
- archived: bool = False,
- type: Literal['ProjectRef'] = 'ProjectRef',
Proxy object to a Project in Nexus.
- class qnexus.wasm_modules.WasmModuleRef(
- *,
- id: UUID,
- annotations: Annotations,
- project: ProjectRef,
- type: Literal['WasmModuleRef'] = 'WasmModuleRef',
Proxy object to a WasmModule in Nexus.
- download_wasm_contents() WasmModuleHandler[source]¶
Get the contents of the original uploaded WASM.
- class qnexus.qir.QIRRef(
- *,
- id: UUID,
- annotations: Annotations,
- project: ProjectRef,
- type: Literal['QIRRef'] = 'QIRRef',
Proxy object to a QIR program in Nexus.
- class qnexus.hugr.HUGRRef(
- *,
- id: UUID,
- annotations: Annotations,
- project: ProjectRef,
- type: Literal['HUGRRef'] = 'HUGRRef',
Proxy object to a HUGR in Nexus.
- class qnexus.gpu_decoder_configs.GpuDecoderConfigRef(
- *,
- id: UUID,
- annotations: Annotations,
- project: ProjectRef,
- type: Literal['GpuDecoderConfigRef'] = 'GpuDecoderConfigRef',
Proxy object to a GpuDecoderConfig in Nexus.