Skip to content

Missing "plain" print of emitted QASM2 source code #156

Open
@cduck

Description

@cduck

pprint(ast) prints a nice colored version of OpenQASM to the terminal or notebook but there is no function that simply prints (or writes to a file) the actual QASM code.

Should add a function like this alongside pprint:

def dumps(qasm_ast):
    # These Console configurations seem to be necessary to get the correct output
    return spprint(qasm_ast, console=Console(no_color=True, force_jupyter=False, force_interactive=False, force_terminal=False))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestqasm2qasm2 related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions