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

semantic for scheduling #9

Open Roger-luo opened 4 years ago

Roger-luo commented 4 years ago

It would be beneficial for low-level code generation if we have a more explicit keyword for scheduling. One proposal is a @column macro (it's implemented in AST at the moment), but need to consider more if this is sufficient, an example syntax looks like

@column for k in 1:n
    k => H
end

this will give the compiler a hint that this code block should be arranged into the same time slice.

Roger-luo commented 3 years ago

we have @barrier now, but might still something else.