qiskit.qasm3.dump
dump(circuit, stream, **kwargs)
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.