Skip to content

Allow switches between filemode and interactive mode in QASM prompt executable #8

@maloleroy

Description

@maloleroy

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestto-doA label for tasks (not "issue" issues)

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions