This is one of my first QC Framework algorithms.
I found that the Carsten code, with some exceptions, is very similar to Andreas Clenow Momentum.
I made some changes to match the original.
I would like someone from the QC team to check and comment on whether everything
was applied correctly.