pyzx icon indicating copy to clipboard operation
pyzx copied to clipboard

Support H boxes with arbitrary complex labels

Open RazinShaikh opened this issue 1 year ago • 3 comments

Similar to the complex labels of the Z box that are now supported

RazinShaikh avatar Oct 08 '23 12:10 RazinShaikh

Since H-boxes also work with the current phase infrastructure, where a Fraction is used to represent a complex phase, I'm not sure what the best way to do this would be.

jvdwetering avatar Oct 12 '23 14:10 jvdwetering

Can you clarify a bit more about what the difficulty is?

dlyongemallo avatar Oct 21 '23 23:10 dlyongemallo

The way the complex phases currently work in Z-Boxes is that they use the vertexdata field instead of the phase field. Using a phase on Z-boxes is then considered to be ill-formed. The complexity is that the logic using H-boxes uses phases and not the vertexdata field.

jvdwetering avatar Oct 22 '23 11:10 jvdwetering