Open shreehari117 opened 6 months ago
Hey! I stumbled across the same thing. p
is never used. However, p
is indirectly set by the length of e.g., theta
such as here: https://github.com/jpmorganchase/QOKit/blob/af4d306c3bd77fb036baa75d2f416879b73e5d6a/qokit/parameter_utils.py#L125. It's quite uncommon and looks a bit hacky to me, but I might miss something. Hope this helps. Essentially, you would want to not set p
but the length of e.g. theta
.
The
get_qaoa_labs_objective
function takesN
andp
, along with other parameters. Theget_qaoa_labs_objective
callsget_qaoa_objective
, wherep
does not seem like it is used.