Skip to content

✨ Support updating values during execution #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DRovara opened this issue Oct 8, 2024 · 0 comments
Open

✨ Support updating values during execution #26

DRovara opened this issue Oct 8, 2024 · 0 comments
Labels
c++ Anything related to C++ code enhancement New feature or request

Comments

@DRovara
Copy link
Collaborator

DRovara commented Oct 8, 2024

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.
@DRovara DRovara added enhancement New feature or request c++ Anything related to C++ code labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Anything related to C++ code enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant