qiskit.qasm3.dumps
dumps(circuit, **kwargs)
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
- circuit (QuantumCircuit) – Circuit to serialize.
- **kwargs – Arguments for the
Exporter
constructor.
Returns
The OpenQASM3 serialization
Return type
str
Was this page helpful?
Report a bug or request content on GitHub.