Skip to content

✨ Support updating values during execution #26

@DRovara

Description

@DRovara

What's the problem this feature will solve?

Typical debuggers often allow users to set the values of variables during execution. Having a similar feature for this in the MQT Debugger would be interesting.

This new feature should also be added to the DAP

Describe the solution you'd like

This comes in two forms:

  • Setting classical values: Updating classical variables allows the developers to change classical values that are used in classically-controlled gates to check the behavior of the program. Considerations: Often, classical values represent the quantum state in some way (think of quantum teleportation as one use case). Simply changing the values may break many algorithms, so it's not necessarily always usful.
  • Setting qubit values: Updating qubits could be helpful for debugging. Users may either want to update individual qubits or sets of multiple qubits. Considerations: If updated qubits were entangled with other qubits, this could cause issues. One should first consider how to best solve this situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++Anything related to C++ codeenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions