Closed shinich1 closed 9 months ago
Hi! I was interested about this project though I still have some questions about it. As much as I understand currently we are still using networkx Graph objects for the visualisation part ? However, I was wondering whether it is possible to have a new class of it s own for this purpose, I have seen a similar implementation for the graph class of pyzx. Do you think it would have any advantages this way ?
@pafloxy Yes I think that would work nicely! let's create a new python file, e.g. visualization.py
, to place the new class.
We need a cool visualization of the graph state from the measurement pattern. It would be ideal to be able to read off the following information from the plot:
Please implement this as a new method
graphix.pattern.Pattern.view_graph()
. Feel free to move the implementation elsewhere (separate file) if code is too long. Do try to tune the colors/etc for a better look for a range of graph size/shapes!see QAOA example for a flow-based arrangement of graph nodes which gives a linear arrangement of qubits following the measurement order.