You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
Describe the bug
The %debug magic command for Q# in Jupyter Notebook (IQ# Kernel), does not display the bar graphs for amplitudes, probabilities, or real/imaginary co-efficients. The circuit appears, but the corresponding changes in the states of the qubits are not shown.
To Reproduce
Open a new Jupyter Notebook with a Q# Kernel.
In the first cell write a basic Q# program. Ex: In operation 'TestMethod' - create a qubit, apply the Hadamard gate, and measure the qubit.
In the next 2 cells, run %simulate TestMethod then %debug TestMethod.
Debug Controls work fine, but Chart Controls, when clicked, do not display anything.
Open the console (F12 on Windows), and the error "Couldn't process kernel message TypeError: state.getDenseAmplitudes is not a function" is seen.
Expected behavior
The Chart controls of the %debug magic command should display the various states of the qubit as the program executes.
Screenshots
Error Message:
%Debug Output Window with no bar graph
System information
OS: Windows 11 64-bit
Browser: Google Chrome
Version: Latest
The text was updated successfully, but these errors were encountered:
Unfortunately, %debug and %trace are not supported today in the Azure Portal's hosted notebooks interface or in VSCode notebooks. This is due to the extensibility mechanism being different for these clients.
It is still supported in Jupyter Notebook classic interface if running a Jupyter server locally or using MyBinder.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
The %debug magic command for Q# in Jupyter Notebook (IQ# Kernel), does not display the bar graphs for amplitudes, probabilities, or real/imaginary co-efficients. The circuit appears, but the corresponding changes in the states of the qubits are not shown.
To Reproduce
Expected behavior
The Chart controls of the %debug magic command should display the various states of the qubit as the program executes.
Screenshots
Error Message:
%Debug Output Window with no bar graph
System information
The text was updated successfully, but these errors were encountered: