Qualtran icon indicating copy to clipboard operation
Qualtran copied to clipboard

SelectHubbard does not serialize

Open fdmalone opened this issue 9 months ago • 0 comments

        except Exception as e:
>           raise BloqCheckException.fail('Serialization Failed:\n' + str(e)) from e
E           qualtran.testing.BloqCheckException: Serialization Failed:
E           Cannot serialize <function SelectHubbard.decompose_from_registers.<locals>.<lambda> at 0x7f226b215d00> of unknown type <class 'function'>

pretty sure this is the ApplyGateToLthTarget lambda for the nth gate.

cc @tanujkhattar

fdmalone avatar May 21 '24 00:05 fdmalone