quantum-compiler / quartz

The Quartz Quantum Compiler
Apache License 2.0
76 stars 19 forks source link

[QASM] Add CircuitSeq::to_qasm_file() #109

Closed xumingkuan closed 1 year ago

xumingkuan commented 1 year ago

This PR adds a function to output CircuitSeq to an OpenQASM 2.0 file.

It outputs all qubits in one qreg, and all parameters are kept 15 digits by default.