Skip to content

Add support for classical expressions to SwitchCaseOp, WhileLoopOp and IfElseOp #10224

@jakelishman

Description

@jakelishman

What should we add?

This tracks the work labelled "PR 2" in the initial classical-expression design document.

Depends on #10223.

Brief overview:

  • relax the type checking to permit WhileLoopOp.condition and IfElseOp.condition to be Expr values with type Bool, and SwitchCaseOp.target to be an Expr value with type Bool or Uint[n].

Closing this issue does not require adding support for the builder interface. That's tracked in a follow-up: #10228.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions