TeamGraphix / graphix

measurement-based quantum computing (MBQC) compiler and simulator
https://graphix.readthedocs.io
Apache License 2.0
62 stars 21 forks source link

Step-in feature into pattern execution #35

Open shinich1 opened 1 year ago

shinich1 commented 1 year ago

Is your feature request related to a problem? Please describe. no

Describe the solution you'd like It might be beneficial if pattern execution can be done by hand, i.e. if you can execute only up to certain command, check the state, and step forward the command execution, etc. This is particularly important if error corrections will be implemented (with density matrix backend).

Describe alternatives you've considered na

Additional context na

shinich1 commented 1 year ago

we can have an internal variable to keep track of the execution progress, and have methods run_command() and run_commands(N), print_state(), print_measurement_results(), etc.

shinich1 commented 1 year ago

also add verbosity option to pattern execution