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.
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.