For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
OverviewCodaControlAPI ReferenceChangelog
OverviewCodaControlAPI ReferenceChangelog
  • Coda API
      • GETList Tools
      • POSTTranspile
      • POSTSimulate
      • POSTTo OpenQASM 3
      • POSTEstimate Resources
      • POSTSplit Circuit
  • Control API
  • Stanza API
    • stanza
    • cli
    • context
    • device
    • exceptions
    • models
    • pyvisa
    • registry
    • timing
    • utils
LogoLogo
Coda APITools

Transpile

POST
https://api.conductorquantum.com/v0/coda/tools/transpile
POST
/v0/coda/tools/transpile
1from conductorquantum import ConductorQuantum
2
3client = ConductorQuantum(token="<token>")
4result = client.coda.tools.transpile(
5 source_code="from qiskit import QuantumCircuit\nqc = QuantumCircuit(2)\nqc.h(0)\nqc.cx(0, 1)",
6 target="cirq",
7)
8print(result)
1{
2 "success": true,
3 "source_framework": "qiskit",
4 "target_framework": "cirq",
5 "converted_code": "import cirq\n\nq0, q1 = cirq.LineQubit.range(2)\ncircuit = cirq.Circuit(\n cirq.H(q0),\n cirq.CNOT(q0, q1),\n)",
6 "intermediate_qasm": "OPENQASM 3.0;\ninclude \"stdgates.inc\";\nqubit[2] q;\nh q[0];\ncx q[0], q[1];",
7 "qasm_version": "3.0",
8 "warnings": [],
9 "gate_count": 2,
10 "qubit_count": 2
11}

Convert quantum circuit code between frameworks. Supports Qiskit, Cirq, PennyLane, Braket, PyQuil, CUDA-Q, and OpenQASM.

Was this page helpful?
Built with

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
source_codestringRequired
Quantum circuit code in any supported framework
targetstringRequired

Target framework: qiskit, cirq, pennylane, braket, pyquil, cudaq, openqasm

Response

Successful Response
successboolean
source_frameworkstring
target_frameworkstring
converted_codestring
intermediate_qasmstring
qasm_versionstring
warningslist of strings
gate_countinteger
qubit_countinteger

Errors

422
Unprocessable Entity Error