Skip to content

adjoint-lowering pass is unable to handle non-Quantum dialect ops #2934

@dime10

Description

@dime10

Following on from #2932, the same test case reveals a different error due to the algorithm being written to only handle quantum dialect ops. If the user converts to the PBC dialect, the pass will fail.

@qp.qjit
@qp.transforms.ppr_to_ppm
@qp.transforms.to_ppr
@qp.qnode(qp.device("null.qubit", wires=1))
def circuit():
   qp.adjoint(lambda: qp.S(0))()
   return qp.probs()
catalyst.utils.exceptions.CompileError: catalyst failed with error code -6: Assertion failed: (result && "expected 'from' to be contained within the map"), function lookup, file IRMapping.h, line 74.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompilerPull requests that update the compiler

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions