Is your feature request related to a problem?
Currently, it is only possible to execute the program in interactive mode or in file-reading mode, not a mix of both.
Proposed solution
If the file test.qasm contains the following
qubit a;
h a;
@interactive;
@display;
The first two lines should be executed, then we should switch to interactive mode until a quit or exit command is entered, and resume to the last @display; line.
Additional context
- Should probably add a
@quit; run statement for consistency
Is your feature request related to a problem?
Currently, it is only possible to execute the program in interactive mode or in file-reading mode, not a mix of both.
Proposed solution
If the file
test.qasmcontains the followingThe first two lines should be executed, then we should switch to interactive mode until a
quitorexitcommand is entered, and resume to the last@display;line.Additional context
@quit;run statement for consistency