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
methodstringOptional
backendstringOptional
shotsintegerOptional
countsmap from strings to integersOptional
probabilitiesmap from strings to doublesOptional
statevectorlist of lists of doublesOptional
density_matrixlist of lists of lists of doublesOptional
circuit_depthintegerOptional
circuit_gate_countintegerOptional

Errors

422
Unprocessable Entity Error