Open QASM 2.0ΒΆ
-
template<typename
Network
>
voidtweedledum
::
write_qasm
(Network const &network, std::string const &filename) Writes network in OPENQASM 2.0 format into a file.
Required gate functions:
foreach_control
foreach_target
op
Required network functions:
num_qubits
foreach_node
- Parameters
network
: A quantum networkfilename
: Filename
-
template<typename
Network
>
voidtweedledum
::
write_qasm
(Network const &network, std::ostream &os) Writes network in OPENQASM 2.0 format into output stream.
An overloaded variant exists that writes the network into a file.
Required gate functions:
foreach_control
foreach_target
op
Required network functions:
foreach_node
num_qubits
- Parameters
network
: A quantum networkos
: Output stream