This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Inserting MultiM
Operator into circuit will change the states of the qubits
#605
Labels
Kind-Bug
Something isn't working
Pkg-Standard
Issue relates to the Microsoft.Quantum.Standard package.
tracking
This label will trigger gh-sync to create or update a mirror internal ADO issue.
Description
When running the following Q# program, the result of each shots is different for two qubit arrays. But the measure operation used here should not have changed the state of qubits. Here are just one situation, it may be quite different in each time.
But if we comment the lines which tag with "// Codes that have an impact", the final state will be zero all the time.
It is supposed that QsCompiler will execute some passes when get code block like
op
andadjoint op
, but if there are some other operations betweenop
andadjoint op
, it will not work even when these operations do nothing.Another probability is that
MultiM
operation does change the state here.Testcase
Environment
operating system : Windows 10
dotnet version : 6.0.301
QDK : 0.25.218240
文档详细信息
⚠ 请勿编辑此部分。 docs.microsoft.com ➟ GitHub 问题链接必须具有此部分。
The text was updated successfully, but these errors were encountered: