graphix icon indicating copy to clipboard operation
graphix copied to clipboard

PyZX as a pattern optimization backend?

Open shinich1 opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. na

Describe the feature you'd like Implement pyzx interface to use ZX-calculus as a pattern optimization backend. This means we will need to construct graph-like diagram, optimize with pyZX, and then get pattern out of it to be simulated or executed on device.

Additional context https://quantum-journal.org/papers/q-2021-03-25-421/ https://arxiv.org/pdf/2304.08166.pdf etc

shinich1 avatar Jun 26 '23 20:06 shinich1

Note that PyZX is now updating the function to_graph_like. The current version's to_graph_like function does not work, so we may need to wait for the next release (or implement it ourselves). https://github.com/Quantomatic/pyzx/pull/189

Getting a pattern out of the PyZX diagram can be done by graphix.generator.generate_from_graph().

king-p3nguin avatar Dec 10 '23 18:12 king-p3nguin