Open ahelsing opened 5 years ago
It seems there is some case in create_inline_procedure
that is not adding a proper entry to the rewriter.
There is a loop around line 656 looking for keyword params, which should be catching this (combined with the loop around line 703 inserting the constant value in this case), but clearly there is something missing.
The inliner does not understand an argument annotated as a
qreg
which also has a default ofNone
. The typical current solution is to leave off the annotation. See for examplebasic_sequences/helpers.py:create_cal_seqs
.Symptoms (after recent improvements):