Skip to content

support literal boolean in ifelse condition #5

@jlapeyre

Description

@jlapeyre

Currently this importer supports tests on classical registers as the condition in conditionals. It seems that only if-else statements effecting dynamics circuits are supported.

But the OC3 spec includes if (true) { ... in examples. This is not difficult to implement. It would be useful, not least for testing thing such as scopes. But it's a bit narrow. Maybe some other cases of expressions that evaluate to a bool at compile-time would not be difficult either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions