configuring backends

class qnexus.AerConfig(
*,
type: Literal['AerConfig'] = 'AerConfig',
noise_model: AerNoiseModel | None = None,
simulation_method: str = 'automatic',
crosstalk_params: CrosstalkParams | None = None,
n_qubits: Annotated[int, Gt(gt=0)] = 40,
)[source]

Qiskit Aer QASM simulator.

class qnexus.AerStateConfig(
*,
type: Literal['AerStateConfig'] = 'AerStateConfig',
n_qubits: Annotated[int, Gt(gt=0)] = 40,
)[source]

Qiskit Aer state vector simulator.

class qnexus.AerUnitaryConfig(
*,
type: Literal['AerUnitaryConfig'] = 'AerUnitaryConfig',
n_qubits: Annotated[int, Gt(gt=0)] = 40,
)[source]

Qiskit Aer unitary simulator.

class qnexus.BraketConfig(
*,
type: Literal['BraketConfig'] = 'BraketConfig',
local: bool,
local_device: str = 'default',
device_type: str | None = None,
provider: str | None = None,
device: str | None = None,
s3_bucket: str | None = None,
s3_folder: str | None = None,
simplify_initial: bool = False,
)[source]

Runs circuits on quantum devices and simulators using Amazon’s Braket service.

class qnexus.QuantinuumConfig(
*,
type: Literal['QuantinuumConfig'] = 'QuantinuumConfig',
device_name: str,
simulator: str = 'state-vector',
machine_debug: bool = False,
attempt_batching: bool = False,
allow_implicit_swaps: bool = True,
noisy_simulation: bool = True,
user_group: str | None = None,
compiler_options: QuantinuumCompilerOptions | None = None,
no_opt: bool = True,
allow_2q_gate_rebase: bool = False,
leakage_detection: bool = False,
simplify_initial: bool = False,
max_cost: int | None = None,
error_params: UserErrorParams | None = None,
)[source]

Runs circuits on Quantinuum’s quantum devices and simulators.

Args:

device_name: The quantum computer or emulator to target. simulator: If device_name is a simulator, the type of simulator to use. machine_debug: Whether to run in machine debug mode. attempt_batching: Whether to attempt batching of circuits. allow_implicit_swaps: Whether to allow implicit swaps in the compilation process. target_2qb_gate: The target 2-qubit gate for the compilation process. noisy_simulation: Whether to use a noisy simulation with an error model. compiler_options: Additional options for the Quantinuum Systems compiler. no_opt: Whether to disable optimization in the compilation process. allow_2q_gate_rebase: Whether to allow 2-qubit gate rebase in the compilation process. leakage_detection:

If true, adds additional Qubit and Bit to Circuit to detect leakage errors. Run prune_shots_detected_as_leaky on returned BackendResult to get counts with leakage errors removed.

simplify_initial: Apply the pytket SimplifyInitial pass to improve fidelity of

results assuming all qubits initialized to zero.

error_params: Additional error parameters for execution on an emulator. user_group: The user group for the compilation jobs.

class qnexus.IBMQConfig(
*,
type: Literal['IBMQConfig'] = 'IBMQConfig',
backend_name: str,
hub: str,
group: str,
project: str,
monitor: bool = False,
simplify_initial: bool = False,
)[source]

Runs circuits on IBM’s quantum devices.

class qnexus.IBMQEmulatorConfig(
*,
type: Literal['IBMQEmulatorConfig'] = 'IBMQEmulatorConfig',
backend_name: str,
hub: str,
group: str,
project: str,
)[source]

Runs circuits on a Nexus-hosted simulator which uses the noise model of a specific IBM quantum device.

class qnexus.ProjectQConfig(
*,
type: Literal['ProjectQConfig'] = 'ProjectQConfig',
)[source]

ProjectQ state vector simulator.

class qnexus.QulacsConfig(
*,
type: Literal['QulacsConfig'] = 'QulacsConfig',
result_type: str = 'state_vector',
)[source]

Qulacs simulator.

enum qnexus.models.language.Language(
value,
)[source]

Enumeration for the possible submission languages for remote submissions.

Member Type:

str

Valid values are as follows:

AUTO = <Language.AUTO: 'AUTO'>
QASM = <Language.QASM: 'OPENQASM 2.0'>
QIR = <Language.QIR: 'QIR 1.0'>