QuantumKatas
QuantumKatas copied to clipboard
%kata magic doesn't work with type-parameterized functions
In #640, task 2.2 of the BoundedKnapsack kata couldn't be migrated to Jupyter Notebook. Both %kata and %check_kata threw exceptions when running with the generic function used in that task:

We've seen the "Value cannot be null. (Parameter 'original')" error in the past, but at that point it mostly indicated a version mismatch of IQ# used to build the notebook in the past and in the present.
This seems to be a different issue; I observed it both when running IQ# 0.18.2106148911 and 0.17.2105144881, and it doesn't happen on the other cells in this notebook until I execute this cell. After I execute it, all other cells start giving the same error.
I will remove this cell for now to complete #640, but in the long run we'll definitely need some type-parameterized tasks, so we'll need to investigate.