Quantinuum Class

Quantinuum target.

Inheritance
azure.quantum.target.target.Target
Quantinuum

Constructor

Quantinuum(workspace: Workspace, name: str = 'quantinuum.sim.h1-1sc', input_data_format: str = 'honeywell.openqasm.v1', output_data_format: str = 'honeywell.quantum-results.v1', capability: str = 'AdaptiveExecution', provider_id: str = 'quantinuum', content_type: str = 'application/qasm', encoding: str = '', **kwargs)

Parameters

Name Description
workspace
Required
name
default value: quantinuum.sim.h1-1sc
input_data_format
default value: honeywell.openqasm.v1
output_data_format
default value: honeywell.quantum-results.v1
capability
default value: AdaptiveExecution
provider_id
default value: quantinuum
content_type
default value: application/qasm
encoding

Methods

estimate_cost

Estimate the cost in HQC for a given circuit. Optionally, you can provide the number of gate and measurement operations manually. The actual price charged by the provider may differ from this estimation.

For the most current pricing details, see https://aka.ms/AQ/Quantinuum/Documentation Or find your workspace and view pricing options in the "Provider" tab of your workspace: https://aka.ms/aq/myworkspaces

submit

Submit a Quantinuum program (OpenQASM 2.0 format)

estimate_cost

Estimate the cost in HQC for a given circuit. Optionally, you can provide the number of gate and measurement operations manually. The actual price charged by the provider may differ from this estimation.

For the most current pricing details, see https://aka.ms/AQ/Quantinuum/Documentation Or find your workspace and view pricing options in the "Provider" tab of your workspace: https://aka.ms/aq/myworkspaces

estimate_cost(circuit: str = None, num_shots: int = None, N_1q: int = None, N_2q: int = None, N_m: int = None, shots: int = None) -> CostEstimate

Parameters

Name Description
circuit
str

Quantum circuit in OpenQASM 2.0 format

default value: None
num_shots
int

Number of shots for which to estimate costs

default value: None
N_1q
int

Number of one-qubit gates, if not specified, this is estimated from the circuit

default value: None
N_2q
int

Number of two-qubit gates, if not specified, this is estimated from the circuit

default value: None
N_m
int

Number of measurement operations, if not specified, this is estimated from the circuit

default value: None
shots
int

Number of shots for which to estimate costs

default value: None

Exceptions

Type Description

If N_1q, N_2q and N_m are not specified, this will require a qiskit installation.

submit

Submit a Quantinuum program (OpenQASM 2.0 format)

submit(circuit: str = None, name: str = 'quantinuum-job', shots: int = None, input_params: Dict[str, Any] = None, **kwargs) -> Job

Parameters

Name Description
circuit
str

Quantum circuit in Quantinuum OpenQASM 2.0 format

default value: None
name
str

Job name

default value: quantinuum-job
shots
int

Number of shots, defaults to None

default value: None
input_params

Optional input params dict

default value: None

Returns

Type Description
Job

Azure Quantum job

Exceptions

Type Description

If N_1q, N_2q and N_m are not specified, this will require a qiskit installation.

Attributes

target_names

Tuple of target names.

target_names = ('quantinuum.qpu.h1-1', 'quantinuum.sim.h1-1sc', 'quantinuum.sim.h1-1e', 'quantinuum.qpu.h1-2', 'quantinuum.sim.h1-2sc', 'quantinuum.sim.h1-2equantinuum.qpu.h2-1', 'quantinuum.sim.h2-1sc', 'quantinuum.sim.h2-1e')