QuantumBFS / YaoLang.jl

YaoLang: The next DSL for Yao and quantum programs.
https://yaoquantum.org/YaoLang.jl/dev/
Apache License 2.0
31 stars 6 forks source link

bugs in is_pure_quantum #47

Closed ChenZhao44 closed 3 years ago

ChenZhao44 commented 4 years ago

The Toffoli gate will be marked as non-pure-quantum.

ex = :(function circ()
    @ctrl (1,2) 3 => X
end)
ir = YaoLang.Compiler.YaoIR(@__MODULE__, ex)
ir.pure_quantum # false
Roger-luo commented 3 years ago

should be resolved now, since we don't have pure_quantum anymore