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 was 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.