Transpile

Convert quantum circuit code between frameworks.

Supports Qiskit, Cirq, PennyLane, Braket, PyQuil, CUDA-Q, and OpenQASM. Provide source code in any supported framework and specify the target framework to receive the equivalent circuit code.

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