Skip to content

qsharp.run fails with Python interop functions wrapping Q# operations #2253

@swernli

Description

@swernli

When using qsharp.run to execute multiple shots of an operation, I should be able to pass the Python Callable wrapper around the operation and have it work. If there are any qubits allocated in the global scope, this triggers a "qubit used after release" error incorrectly:

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions