qiskit-tutorials icon indicating copy to clipboard operation
qiskit-tutorials copied to clipboard

Incorrect equation for the Hamiltonian in Max Cut

Open camitava0321 opened this issue 5 years ago • 6 comments

Incorrect equation for the Hamiltonian in Max Cut

  • While going through MaxCut documentation, I noticed a possible mistake while formulating C(Z) from C(X) - if x-> (1-z)/2 then (1-x) should be just z/2, not (1+z). If this is so then the Hamiltonian will eventually be different. Also after C(Z) the const term is being rendered as latex code.
  • https://qiskit.org/documentation/tutorials/optimization/6_examples_max_cut_and_tsp.html image

camitava0321 avatar Sep 19 '20 14:09 camitava0321

@mikeumus I'm fairly new to quantum computing but would like to contribute where I can. This seems like a good place to start. Can I work on this issue?

arulandu avatar Feb 01 '21 17:02 arulandu

Hi @Claeb101, glad you're interested. However, I'm just an observer of the Qiskit repo. You can reference the README.md and CONTRIBUTING.md

@camitava0321, any advice for Claeb101 for starting out on this ticket?

mikeumus avatar Feb 01 '21 17:02 mikeumus

Oh I'm so sorry. I wasn't quite sure who to ask if I could contribute. I will ask @camitava0321 in the future. I take it I'm allowed to work right away on any issues then instead of asking every time?

arulandu avatar Feb 01 '21 17:02 arulandu

@Claeb101 yeah I'm sure if your PRs match the requirements in CONTRIBUTING.md that they'd be welcome. 😃👍

mikeumus avatar Feb 20 '21 08:02 mikeumus

@camitava0321 , if x->(1-z)/2, then (1-x)->(1+z)/2 . I think the equation seems correct as there is /4 in the denominator. However the latex code needs to be looked into. @Claeb101 Are you still working on this, if not I would like to.

shil-m avatar Jun 13 '21 12:06 shil-m

@shil-m Sure, you can work on this!

arulandu avatar Jun 13 '21 23:06 arulandu

Hi, thanks for your interest and apologies for the slow response! the code referred to in this issue belongs to qiskit-optimization: https://github.com/qiskit-community/qiskit-optimization. We are now focusing on archiving this repository and moving its contents to the relevant projects. If you think this issue persists, I encourage you to open the issue directly in qiskit-optimization.

Thanks anyway for your feedback and helping us make Qiskit better! 🚀

ElePT avatar Aug 21 '23 08:08 ElePT