QuantumBFS / ZXCalculus.jl

An implementation of ZX-calculus in Julia
http://yaoquantum.org/ZXCalculus.jl/dev/
MIT License
48 stars 7 forks source link

Input and output indices convention #97

Open ChenZhao44 opened 1 year ago

ChenZhao44 commented 1 year ago

Avoid using the first 2n indices for inputs and outputs as a pattern.

exAClior commented 1 year ago

I added commit dc3a3aa430cc210fbaa39e509bbf6554cf1680b2 for accessing the index in multigraph that represents output and input for a certain qubit. It seemed safer. I don't see anywhere else where this problem appears.