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

generate new struct instead of using Symbol #64

Open Roger-luo opened 3 years ago

Roger-luo commented 3 years ago

currently we use GenericRoutine{name} for gates. But this can cause problem when there are name conflicts since we are not using Julia's module system for this. We should directly create a new routine type for each generic routine.

Intrinsic routines should be fine on this.