QuilΒΆ
-
template<typename
Network>
voidtweedledum::write_quil(Network const &network, std::string const &filename) Writes network in quil format into a file.
Required gate functions:
foreach_controlforeach_targetop
Required network functions:
foreach_nodeforeach_qubitnum_qubits
- Parameters
network: A quantum networkfilename: Filename
-
template<typename
Network>
voidtweedledum::write_quil(Network const &network, std::ostream &os) Writes network in quil format into output stream.
An overloaded variant exists that writes the network into a file.
Required gate functions:
foreach_controlforeach_targetop
Required network functions:
foreach_nodeforeach_qubitnum_qubits
- Parameters
network: A quantum networkos: Output stream