Skip to content

Add PostSelectZ operation#3017

Draft
swernli wants to merge 1 commit intomainfrom
swernli/post-select
Draft

Add PostSelectZ operation#3017
swernli wants to merge 1 commit intomainfrom
swernli/post-select

Conversation

@swernli
Copy link
Collaborator

@swernli swernli commented Mar 15, 2026

This adds a new operation, Std.Diagnostics.PostSelectZ, which allows a program to force the collapse of a given qubit to a given state in the computational basis. The API works only in simulation (including simulation for circuit generation) and resource estimation. It is ignored during QIR code generation.

This fixes #2930.

This adds a new operation, `Std.Diagnostics.PostSelectZ`, which allows a program to force the collapse of a given qubit to a given state in the computational basis. The API works only in simulation (including simulation for circuit generation) and resource estimation. It is ignored during QIR code generation.

This fixes #2930.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Post-select operation

1 participant