ibm.qdmi.serializers

Serialize validated circuits with physical and classical indices intact.

Functions

qiskit_to_qasm3(→ str)

Export a circuit for the native IBM OpenQASM interface.

Module Contents

qiskit_to_qasm3(circuit: QuantumCircuit, num_qubits: int) → str

Export a circuit for the native IBM OpenQASM interface.

Parameters:
  • circuit – A bound circuit whose classical registers partition its bits.

  • num_qubits – The full physical width of the target backend.

Returns:

OpenQASM 3 with stable classical names and all physical qubit indices.