You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error is not thrown when attempting to broadcast a custom unitary to a vector #2452.
But it would be great to support passing cudaq.qvector to a custom op.
Required prerequisites
Describe the feature
Extended from ticket #1475
Problem
Accepting
cudaq.qvector
to provide flexibility and convenience for multi-qubit custom op within a kernel.Description
Now in v0.9.1,
error: invalid number of arguments
occurs when the code below is executed withcudaq.draw
,cudaq.sample
, etc:Then we need to manually pass the qubits (or
cudaq.qubit
) one by one:Same for the
ctrl
method ifcudaq.qvector
is involved:The text was updated successfully, but these errors were encountered: