documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Error in the formula used to calculate cvar-aggregation

Open ibrahim-shehzad opened this issue 2 months ago • 3 comments

URL to the relevant tutorial

In the second-to-last cell of Step 3 in https://github.com/Qiskit/documentation/blob/main/docs/tutorials/advanced-techniques-for-qaoa.ipynb, there is a typo in the expression for gamma_circ which is then used to calculate cvar_aggregation.

Select all that apply

  • [ ] new content request
  • [x] typo
  • [x] code bug
  • [ ] out-of-date content
  • [ ] broken link
  • [ ] other

Describe the fix or the content request.

Following the calculations done in Sec. VA of this paper, gamma_circ = gamma_cz * num_2q_ops should be corrected to gamma_circ = gamma_cz ** num_2q_ops.

For new content requests - if the request is accepted, do you want to write the content?

I will write (or already have written) a draft of the proposed content

ibrahim-shehzad avatar Oct 10 '25 19:10 ibrahim-shehzad

@miamico reports that @ibrahim-shehzad will be writing a bit about this change.

abbycross avatar Oct 16 '25 14:10 abbycross

@ibrahim-shehzad just a reminder of this issue

miamico avatar Nov 25 '25 17:11 miamico

@miamico I have started a PR (#4315 ) to resolve this issue. It is ready for review.

ibrahim-shehzad avatar Nov 26 '25 01:11 ibrahim-shehzad