Quantinuum Systems API Options

Quantinuum Systems API options can be used to control server-side compiler behaviour. These options are specified upon instantiation of qnexus.QuantinuumConfig.

Compiler Options

The API option is specifed in bold, followed by a description of the option and allowed values.

API Options

Description

Default Values

Allowed Values

no-reduce

turns off all TKET optimizations, all hardware compiler gate combination logic, and requires exact 1:1 correspondence of two-qubit gates with gates on the system. This requires the circuit be submitted using one of the native two-qubit gates on the system, otherwise an error will be returned

True

Boolean

no-opt

turns off all TKET optimizations and all hardware compiler gate combination logic. If more than 1 native gate is used in the circuit, the circuit will be rebased to 1 native gate, but no further gate combination logic will occur. The job will fail if no-opt is set to True and the circuit contains non-native gates.

True

Boolean

TKET-opt-level

the TKET optimization level to apply, with TKET optimizations turned on, the hardware compiler will provide further gate combination logic as makes sense for ions and transport

None

0, 1, 2, None

no-qir-convert

Uses the legacy QASM compilation flow for programs, without converting QASM programs to QIR. Accepts Boolean argument.

False

Boolean

Usage

The class quantinuum_schemas.models.backend_config.QuantinuumCompilerOptions accepts a dictionary of compiler options. Each compiler option

from quantinuum_schemas.models.backend_config import QuantinuumCompilerOptions

compiler_options = QuantinuumCompilerOptions(**{
    "no-opt": True,
    "no-reduce": True,
    "no-qir-convert": False,
    "tket-opt-level": False
})
import qnexus as qnx

qntm_config = qnx.QuantinuumConfig(
    device_name="H1-1E",
    compiler_options=compiler_options
)

Emulator Options

An overview of Emulator API options is provided in the emulator user guide. Usage is demonstrated here.