Two different ways to implement the optional args led to errors. Either the one_to_many argument was ignored (first code block) or _pop_measurement was used on a Qiskit circuit instead of converting the circuit to a cirq circuit first (second code block).
Similar to how the optional arg is used in PEC, I also tried changing multivariate_layer_scaling to _cirq_multivariate_layer_scaling such that the new multivariate_layer_scaling only accepted a QPROGRAM as input.
As discussed in another PR: https://github.com/unitaryfund/mitiq/pull/2347#issuecomment-2182074934
Two different ways to implement the optional args led to errors. Either the
one_to_many
argument was ignored (first code block) or_pop_measurement
was used on a Qiskit circuit instead of converting the circuit to a cirq circuit first (second code block).Similar to how the optional arg is used in PEC, I also tried changing
multivariate_layer_scaling
to_cirq_multivariate_layer_scaling
such that the newmultivariate_layer_scaling
only accepted a QPROGRAM as input.