Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Return false from IsResourceEstimating on the stabilizer simulator - #4360

Open
Rio Yu (rioyu123) wants to merge 1 commit into
microsoft:mainfrom
rioyu123:fix/stabilizer-resource-query
Open

Rio Yu (rioyu123) wants to merge 1 commit into
microsoft:mainfrom
rioyu123:fix/stabilizer-resource-query

Conversation

@rioyu123

Copy link
Copy Markdown

The Q# stabilizer simulator failed with an unknown intrinsic error when a program called Std.ResourceEstimation.IsResourceEstimating(). It now returns false, as the sparse simulator does.

The regression test calls the intrinsic through qsharp.run(..., type="stabilizer") and checks the result.

The new test reproduced the error on main and passed with a Python package built from this change. All 25 tests in test_clifford_simulator.py and all 642 qsc_eval tests passed.

Fixes #4174.

I used Codex to implement and test the change and Claude to review it.

This branch has not been deployed

No deployments
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.

[Bug] Interpreter stabilizer: IsResourceEstimating() is an unknown intrinsic

1 participant