Unable to Apply Operators from a List of Operator Names in cudaq.register_operation()
#2595
Open
3 of 4 tasks
cudaq.register_operation()
#2595
Required prerequisites
Describe the bug
I am trying to apply several general unitary matrices to a circuit. I can successfully use
cudaq.register_operation(...)
by explicitly specifying the operation name. However, I have a use case where I need to store these operator names in a list and retrieve them within a loop. While no error is raised, nothing gets added to the kernel when I attempt this approach. Below is a minimal working example that demonstrates the issue.Steps to reproduce the bug
Working Example (Using Operator Name Directly):
Expected behavior
Desired Implementation (Using Operator from List):
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
No response
The text was updated successfully, but these errors were encountered: