microsoft / iqsharp

Microsoft's IQ# Server.
https://docs.microsoft.com/quantum
MIT License
126 stars 58 forks source link

dump.measurementDisplayHistogram doesn't work #450

Open tcNickolas opened 3 years ago

tcNickolas commented 3 years ago

Describe the bug I tried to use %config dump.measurementDisplayHistogram=true both for single-qubit and for multi-qubit systems.

To Reproduce Steps to reproduce the behavior:

  1. I used Qubit and MultiQubitSystems tutorials, the first demos truncated to the first DumpMachine. I can repro this both on my machine and on the Katas' Binder.

Expected behavior A fixed-size window with a diagram similar to that printed by %debug.

Screenshots The top screen of the ever-growing display: image

System information

cgranade commented 3 years ago

I can confirm a local reproduction for this as well. Using web console to set a breakpoint on the canvas height changing, I can tell that it's chart.js that is resizing the chart as part of its scroll handler. Effectively, on scroll, chart.js seems to think it needs to grow the chart, which then causes another scroll, and so forth. Not sure of the root cause yet, tho.