Tools

Simulate

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

post/tools/simulate

Request

  • Base URL: https://api.conductorquantum.com/v0/coda
  • URL: https://api.conductorquantum.com/v0/coda/tools/simulate
  • Auth: HTTP bearer

Request body

codestring required

Python code containing the quantum circuit

method'qasm' | 'statevector' | 'density_matrix'

Simulation method

shotsinteger
seed_simulatorinteger nullable
backend'aer' | 'cudaq' | 'auto'

Simulation backend

Response

Successful Response

successboolean required
methodstring
backendstring
shotsinteger
countsobject
probabilitiesobject
circuit_depthinteger
circuit_gate_countinteger

Changes

No recorded changes to this operation across all 1 revision of this API.