-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in MultiQubitDumpMachineDemo Code #763
Comments
This is an artifact of migration from the "old" QDK used in https://github.com/microsoft/QuantumKatas/ to the new QDK we're using on the website (see https://devblogs.microsoft.com/qsharp/introducing-the-azure-quantum-development-kit-preview/ for the announcement). Old QDK had a different output format for DumpMachine, so the same code would output More broadly, the tutorials migrated to the website need to be double-checked for the discrepancies between the descriptions and the code output that arise from endianness - for example, the same issue is likely to show up in the MultiQubitSystems tutorial. Thank you for reporting this! |
@DmitryVasilevsky can this be closed now? I wasn't sure where to check on QCOM |
This shows up in Multi-Qubit Systems kata, (And thank you @bdg221 for the original report!) |
Describe the bug
In the tutorials, The Qubit > Display the Quantum State of a Multi-Qubit Program includes the demo code DumpMachine for Multi-Qubit Systems. The comments about performing the X gate on the second qubit are incorrect:
First of all, the entire system is now in state |10> and also it is decimal notation that represents |2>. Finally, the Message() should also be changed to |10>.
This would be extremely confusing to someone who is new to quantum computing, especially if they run the code and see:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the comment in the code to read:
The entire system is now in state |10>, or, in decimal notation, |2>.
Then the Message("State |01>:"); would be changed to Message(State |10>:");
Screenshots
Current implementation:
Results from running the demo:
System information
N/A
Additional context
I would be happy to correct this issue if you would like to assign it to me.
The text was updated successfully, but these errors were encountered: