Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.qasm3.dumps

dumps(circuit, **kwargs)

GitHub

Serialize a QuantumCircuit object in an OpenQASM3 string.

Note

This is a quick interface to the main Exporter interface. All keyword arguments to this function are inherited from the constructor of that class, and if you have multiple circuits to export, it will be faster to create an Exporter instance, and use its Exporter.dumps method.

Parameters

Returns

The OpenQASM3 serialization

Return type

str

Was this page helpful?
Report a bug or request content on GitHub.