Skip to content

catalyst.cond does not accept MeasurementValue type as input conditional #1237

Open
@willjmax

Description

@willjmax

In PennyLane qml.cond(conditional, true_fn) can take either a MeasurementValue or a boolean for the conditional argument. However, catalyst.cond only accepts a boolean for the conditional argument. This prevents some PennyLane operations, such as iterative_qpe, from being compatible with QJIT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions