[x] Search the issue tracker to check if your feature has already been mentioned or rejected in other issues.
Describe the feature
It would be useful to write code like this.
import cudaq
@cudaq.kernel
def test(num_qubits: int, mask: int):
q = cudaq.qvector(num_qubits)
for i in range(num_qubits):
if mask >> i & 1:
x(q[i])
mz(q)
Now I got errors unhandled binary operator - <ast.BitAnd object at 0x7fe9703569b0>.
Required prerequisites
Describe the feature
It would be useful to write code like this.
Now I got errors
unhandled binary operator - <ast.BitAnd object at 0x7fe9703569b0>
.