Simulate

Run a quantum circuit simulation and return results. Supports qasm (sampling), statevector, and density_matrix methods with CPU or GPU backends.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
codestringRequired
Python code containing the quantum circuit
methodenumOptionalDefaults to qasm
Simulation method
shotsintegerOptional1-100000Defaults to 1024
seed_simulatorinteger or nullOptional
backendenumOptionalDefaults to auto
Simulation backend

Response

Successful Response
successboolean
methodstring
backendstring
shotsinteger
countsmap from strings to integers
probabilitiesmap from strings to doubles
statevectorlist of lists of doubles
density_matrixlist of lists of lists of doubles
circuit_depthinteger
circuit_gate_countinteger

Errors

422
Unprocessable Entity Error