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.dump

dump(circuit, stream, **kwargs)

GitHub

Serialize a QuantumCircuit object as a OpenQASM3 stream to file-like object.

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.dump method.

Parameters

  • circuit (QuantumCircuit) – Circuit to serialize.
  • stream (TextIOBase) – stream-like object to dump the OpenQASM3 serialization
  • **kwargs – Arguments for the Exporter constructor.

Return type

None

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