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,
)

Qiskit Aer QASM simulator.

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

Qiskit Aer state vector simulator.

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

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,
)

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,
target_2qb_gate: str | None = None,
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,
error_params: UserErrorParams | None = None,
)

Runs circuits on Quantinuum’s quantum devices and simulators.

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

Runs circuits on IBM’s quantum devices.

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

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',
)

ProjectQ state vector simulator.

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

Qulacs simulator.

enum qnexus.models.language.Language(
value,
)

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'>