compile¶
- qnexus.compile(
- circuits: CircuitRef | list[CircuitRef],
- backend_config: Annotated[AerConfig | AerStateConfig | AerUnitaryConfig | BraketConfig | QuantinuumConfig | IBMQConfig | IBMQEmulatorConfig | ProjectQConfig | QulacsConfig, FieldInfo(annotation=NoneType, required=True, discriminator='type')],
- name: str,
- description: str = '',
- project: ProjectRef | None = None,
- properties: OrderedDict[str, bool | int | float | str] | None = None,
- optimisation_level: int = 2,
- credential_name: str | None = None,
- user_group: str | None = None,
- hypertket_config: HyperTketConfig | None = None,
- timeout: float | None = 300.0,
Utility method to run a compile job on a circuit or circuits and return a DataframableList of the compiled circuits.
- qnexus.start_compile_job(
- circuits: CircuitRef | list[CircuitRef],
- backend_config: Annotated[AerConfig | AerStateConfig | AerUnitaryConfig | BraketConfig | QuantinuumConfig | IBMQConfig | IBMQEmulatorConfig | ProjectQConfig | QulacsConfig, FieldInfo(annotation=NoneType, required=True, discriminator='type')],
- name: str,
- description: str = '',
- project: ProjectRef | None = None,
- properties: OrderedDict[str, bool | int | float | str] | None = None,
- optimisation_level: int = 2,
- credential_name: str | None = None,
- user_group: str | None = None,
- hypertket_config: HyperTketConfig | None = None,
Submit a compile job to be run in Nexus.
- class qnexus.jobs.CompileJobRef(
- *,
- id: UUID,
- annotations: Annotations,
- job_type: JobType = JobType.COMPILE,
- last_status: StatusEnum,
- last_message: str,
- project: ProjectRef,
- 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,
- type: Literal['CompilationResultRef'] = 'CompilationResultRef',
Proxy object to the results of a circuit compilation in Nexus.
- df() DataFrame ¶
Present in a pandas DataFrame.
- get_input() CircuitRef ¶
Get the CircuitRef of the original circuit.
- get_output() CircuitRef ¶
Get the CircuitRef of the compiled circuit.
- get_passes() DataframableList[CompilationPassRef] ¶
Get information on the compilation passes and the output circuits.
- 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.
- df() DataFrame ¶
Present in a pandas DataFrame.
- get_input() CircuitRef ¶
Get the CircuitRef of the original circuit.
- get_output() CircuitRef ¶
Get the CircuitRef of the compiled circuit.
- class quantinuum_schemas.models.hypertket_config.HyperTketConfig¶
Configuration for HyperTKET compilation.