Open QASM 2.0¶
Warning
doxygenfunction: Unable to resolve multiple matches for function “tweedledum::write_qasm” with arguments (Network const&, std::string const&) in doxygen xml output for project “tweedledum” from directory: doxyxml/xml. Potential matches:
- template<typename Network>
void tweedledum::write_qasm(Network const&, std::ostream&)
- template<typename Network>
void tweedledum::write_qasm(Network const&, std::string_view)
-
template<typename
Network
>
voidtweedledum
::
write_qasm
(Network const &network, std::ostream &os = std::cout) Writes network in OPENQASM 2.0 format into output stream.
An overloaded variant exists that writes the network into a file.
- Parameters
network
: A quantum networkos
: Output stream