Quandela / Perceval

An open source framework for programming photonic quantum computers
https://perceval.quandela.net
Other
133 stars 63 forks source link

PCVL-725 circuit_to_graph_converter and resources_estimator classes #408

Open JuanJoseOchoaD opened 1 month ago

JuanJoseOchoaD commented 1 month ago

circuit_to_graph_converter is used to convert a circuit into a weighted graph, whose gates will have a certain weight corresponding to the actual non-deterministic gates that would have to be performed in the optical circuit. It also has a plotting function and an algorithm to cut it in k subgraphs in the most optimal way.

The second file, resources_estimator calculates for a given qudit encoding, including the ones suggested by circuit_to_graph_converter, the number of entangling gates, photons and modes needed.