Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Stack overflow with %trace magic #270

@crazy4pi314

Description

@crazy4pi314

Describe the bug
I saw that the %trace magic got merged into master recently, and went to try it but can reliably stack overflow it.

To Reproduce
Steps to reproduce the behavior:

  1. Run the snippet below in a notebook
open Microsoft.Quantum.Arithmetic;
open Microsoft.Quantum.Convert;

operation TestCrash() : Unit {
    using (addressRegister = Qubit[1]) {
        ApplyPauliFromBitString(PauliX, true, IntAsBoolArray(0, 1), addressRegister);
        ResetAll(addressRegister);
    }
}
  1. Run the trace magic
%trace TestCrash

I set $env:IQSHARP_LOG_LEVEL = "Debug" and can watch it stack overflow each time I run the trace magic.

Expected behavior
A pretty drawn circuit showing what got run in my program

Screenshots
You can see the dead kernel badge in the top right
image

System information

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Kind-BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions