Write to qpic file formatΒΆ
-
template<typename
Network
>
voidtweedledum
::
write_qpic
(Network const &network, std::string const &filename, bool color_marked_gates = false) Writes network in qpic format into a file.
- Parameters
network
: A quantum networkfilename
: Filenamecolor_marked_gates
: Flag to draw marked nodes in red
-
template<typename
Network
>
voidtweedledum
::
write_qpic
(Network const &network, std::ostream &os, bool color_marked_gates = false) Writes network in qpic format into output stream.
An overloaded variant exists that writes the network into a file.
- Parameters
network
: A quantum networkos
: Output streamcolor_marked_gates
: Flag to draw marked nodes in red