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

support general Julia code returns a circuit #19

Closed Roger-luo closed 4 years ago

Roger-luo commented 4 years ago

This does not work for now.

@device function single_qubit_layer(configs::AbstractVector, gateset = (X, Y, Z))
    @inbounds for k in 1:size(configs, 1)
        idx = configs[k]
        if idx > 0
            idx => gateset[idx]
        end
    end
end