Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Implement a DAP Server and python bindings #1

Merged
DRovara merged 22 commits into
mainfrom
python/bindings
Jul 15, 2024
Merged

Implement a DAP Server and python bindings #1
DRovara merged 22 commits into
mainfrom
python/bindings

Conversation

@DRovara

@DRovara DRovara commented Jul 15, 2024

Copy link
Copy Markdown
Collaborator

This pull request consists of two main features

Python Bindings

  • Implements Python bindings for all SimulationState functions
  • Further adds backend-specific Python bindings for creating a DD-based simulation state.

DAP Server

A Python-based DAP Server that can be used to interact with the debugger from arbitrary front-ends. It handles a sizable subset of the standard DAP request types that make sense in the context of quantum circuits. So far, it has only been tested with Visual Studio Code. An additional extension is required to actually run the debugger from there.

Other features

Add additional debugging features required by the DAP, including getStackTracke(), stepOutForward(), stepOutBackward() etc.

DRovara and others added 22 commits July 10, 2024 13:48
Now python bindings use correct signatures. I.e. no longer use call-by-ref pointers and instead return a tuple etc
On exceptions, we now send a custom "grayOut" event to the client, where the VSCode extension can use it to gray out lines of code. We also send information about the error using "output" messages
…sertion

After changes that move cursor back by one step after assertion fail, we no longer need to read the previous instruction
@DRovara DRovara self-assigned this Jul 15, 2024
@DRovara DRovara merged commit 9d1969a into main Jul 15, 2024
@DRovara DRovara deleted the python/bindings branch July 15, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants