Skip to content

✨ Implement qco.index_switch operation #1885

Description

@MatthiasReumann

Analogously to the qco.if operation, we require a qco.index_switch op to represent switch-case statements. Because the QC dialect doesn't enforce linear typing, programs in the QC dialect can still use the scf.index_switch operation.

Resolving this issue includes tackling the following tasks:

  • Define the operation in QCOOps.td.
  • Implement helper methods, analogously to the qco.if operation.
  • Implement the Conversion from QC to QCO.
  • Implement the Conversion from QCO to QIR.
  • Adapt the WireIterator to support the newly added switch-op.

Each of these tasks may be a separate pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MLIRAnything related to MLIR

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions