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

disallow constants in pure quantum program #40

Closed Roger-luo closed 4 years ago

Roger-luo commented 4 years ago

This disallows constants (symbols in the IR) to be treated as constants since we don't actually have type inference here, thus we cannot be sure the symbol is a constant or not.