QDMI Devices v0.1
Quantum Device Management Interface Devices
Loading...
Searching...
No Matches
qaptiva_auxiliary.py File Reference

Description

The Custom Module for handling the connection and submitting jobs.

Functions

 qaptiva_auxiliary.create_remote_qpu (host)
 Creates a remote QPU connection.
 
 qaptiva_auxiliary.submit_job (remote_qpu, qasm_string, nshots)
 Submits a quantum job to a remote QPU.
 

Function Documentation

◆ create_remote_qpu()

qaptiva_auxiliary.create_remote_qpu ( host)

Creates a remote QPU connection.

Parameters
hostHostname and port in the form "host:port".
Returns
A RemoteQPU instance or None if the connection fails.

◆ submit_job()

qaptiva_auxiliary.submit_job ( remote_qpu,
qasm_string,
nshots )

Submits a quantum job to a remote QPU.

Parameters
remote_qpuA RemoteQPU instance.
qasm_stringQASM code string.
nshotsNumber of shots to run the job.
Returns
A list containing measurement states and their probabilities, or None if submission fails.