Open Roger-luo opened 4 years ago
this would allow the compiler to generate a batch of quantum operations on a batch of registers, via a new keyward
for id in @eachregister if configs[id] == 1 1 => X end end
A better way could be
@eachregister id begin if configs[id] == 1 1 => X end end
actually @register id <expr> might be better
@register id <expr>
this would allow the compiler to generate a batch of quantum operations on a batch of registers, via a new keyward