Skip to main content
POST
/
jobs
Create Job
curl --request POST \
  --url https://api-v2.qbraid.com/api/v1/jobs \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'email: <email>' \
  --data '
{
  "shots": 123,
  "deviceQrn": "<string>",
  "program": {
    "format": "qasm2",
    "data": "<unknown>"
  },
  "name": "<string>",
  "tags": {},
  "runtimeOptions": {}
}
'
{
  "name": "My quantum job",
  "shots": 1000,
  "deviceQrn": "aws:aws:sim:dm1",
  "tags": {},
  "runtimeOptions": {},
  "jobQrn": "aws:aws:qpu:dm1-a1b2-qjob-1234567890abcdef",
  "batchJobQrn": null,
  "vendor": "aws",
  "provider": "aws",
  "status": "INITIALIZING",
  "statusMsg": null,
  "experimentType": "gate_model",
  "queuePosition": null,
  "timeStamps": {
    "createdAt": "2025-01-15T10:30:00Z",
    "endedAt": null,
    "executionDuration": null
  },
  "cost": null,
  "estimatedCost": 3.75,
  "metadata": {}
}
{
  "name": "My quantum job",
  "shots": 1000,
  "deviceQrn": "aws:aws:sim:dm1",
  "tags": {},
  "runtimeOptions": {},
  "jobQrn": "aws:aws:qpu:dm1-a1b2-qjob-1234567890abcdef",
  "batchJobQrn": null,
  "vendor": "aws",
  "provider": "aws",
  "status": "INITIALIZING",
  "statusMsg": null,
  "experimentType": "gate_model",
  "queuePosition": null,
  "timeStamps": {
    "createdAt": "2025-01-15T10:30:00Z",
    "endedAt": null,
    "executionDuration": null
  },
  "cost": null,
  "estimatedCost": 3.75,
  "metadata": {}
}

Authorizations

X-API-KEY
string
header
required

Authenticate requests using an API key linked to your qBraid account. Obtain your key by registering or logging in at account-v2.qbraid.com.

Headers

email
string
required

User email

organization
string | null

Organization QRN

Body

application/json

Schema for job submission request body

shots
integer
required

Number of shots to execute

deviceQrn
string
required

qBraid device resource name

program
Program · object
required

Schema for quantum program

name
string | null

Job name

tags
Tags · object

Job tags

runtimeOptions
Runtimeoptions · object

Runtime options

Response

Successful Response

Schema for runtime job model

shots
integer
required

Number of shots to execute

deviceQrn
string
required

qBraid device resource name

jobQrn
string
required

qBraid job resource name

vendor
enum<string>
required

Vendor name

Available options:
aws,
azure,
ibm,
ionq,
qbraid
provider
enum<string>
required

Provider name

Available options:
aqt,
aws,
azure,
equal1,
ibm,
iqm,
ionq,
nec,
oqc,
pasqal,
quantinuum,
quera,
rigetti,
qbraid
status
string
required

Job status

experimentType
string
required

Experiment type

estimatedCost
number | null
required

Job estimated cost in credits

name
string | null

Job name

tags
Tags · object

Job tags

runtimeOptions
Runtimeoptions · object

Runtime options

batchJobQrn
string | null

Batch job resource name

statusMsg
string | null

Job status message

queuePosition
integer | null

Job queue position

Required range: x >= 0
timeStamps
TimeStamps · object

Job time stamps

cost
number | null

Job cost in credits

metadata
Metadata · object

Job metadata