Open WolfLink opened 1 month ago
A workaround I have come up with: a wrapper class that implements num_residuals
by saving the parameters from the circuit passed in gen_cost
, passing those parameters to get_residuals
, and counting the number of residuals that come out of it.
CeresMinimizer
frombqskitrs
makes a call tonum_residuals
onDifferentiableResidualsFunction
objects. The stringnum_residuals
is not present anywhere in the Pythonbqskit
repo, making it unclear that this is a requirement forDifferentiableCostFunction
.Also
HilbertSchmidtResiduals
does not implementnum_residuals
, which is problematic for what I am trying to do (I'm writing a residuals function that modifies another residuals function).