qarp.absorb¶
QARPx SDK absorbers — convert an SDK-native circuit to a SimpleBlock.
from qarp.absorb import QiskitAbsorber block = QiskitAbsorber().absorb(qiskit_circuit)
C++ parsers (cpp/libqarpx/src/absorb/) extract (commands, n_qubits, n_cbits);
the Python wrappers below construct the proper qarp.blocks.SimpleBlock.
The QASM absorbers are thin Python wrappers over their C++ parsers.
Raising surface: an object from a different SDK raises
qarp.errors.CapabilityError naming the module it came from (checked
before any attribute access); a missing SDK raises ImportError with a
pip install hint; unparseable input stays RuntimeError.
Public depth: flat. Submodules are private.