{
  "id": "2024/646",
  "url": "https://opencryptology.org/2024/646",
  "original_url": "https://eprint.iacr.org/2024/646",
  "title": "Efficient Quantum Algorithm for SUBSET-SUM Problem",
  "authors": [
    "Sanchita Ghosh",
    "Anant Sharma",
    "Sreetama Das",
    "Shibdas Roy"
  ],
  "affiliations": null,
  "abstract": "Problems in the complexity class $NP$ are not all known to be solvable, but are verifiable given the solution, in polynomial time by a classical computer. The complexity class $BQP$ includes all problems solvable in polynomial time by a quantum computer. Prime factorization is in $NP$ class, and is also in $BQP$ class, owing to Shor's algorithm. The hardest of all problems within the $NP$ class are called $NP$-complete. If a quantum algorithm can solve an $NP$-complete problem in polynomial time, it would imply that a quantum computer can solve all problems in $NP$ in polynomial time. Here, we present a polynomial-time quantum algorithm to solve an $NP$-complete variant of the $SUBSET-SUM$ problem, thereby, rendering $NP\\subseteq BQP$. We illustrate that given a set of integers, which may be positive or negative, a quantum computer can decide in polynomial time whether there exists any subset that sums to zero. There are many real-world applications of our result, such as finding patterns efficiently in stock-market data, or in recordings of the weather or brain activity. As an example, the decision problem of matching two images in image processing is $NP$-complete, and can be solved in polynomial time, when amplitude amplification is not required.",
  "category": "Foundations",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Efficient Quantum Algorithm for SUBSET-SUM Problem” by Sanchita Ghosh, Anant Sharma, Sreetama Das, Shibdas Roy, Cryptology ePrint Archive, Paper 2024/646, https://eprint.iacr.org/2024/646. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-04-27T17:25:03Z",
    "updated": "2024-08-02T03:54:55Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/646.pdf",
    "sha256": "86d36f5913bbb8c4a46edcefad44331bcce2023b5c10ed413d6fe5fc2e738213",
    "size": 541403,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/646/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/646.pdf",
      "size": 541403,
      "sha256": "86d36f5913bbb8c4a46edcefad44331bcce2023b5c10ed413d6fe5fc2e738213",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/646/versions/20240613T150931Z.pdf",
      "captured_at": "2024-06-13T15:09:31Z",
      "label": "copy captured 2024-06-13",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240613150931id_/https://eprint.iacr.org/2024/646.pdf",
      "size": 540481,
      "sha256": "d86c30d4e900248cd38be3ddb4f5e0f780bbe7dd3b50ae59176358c9e814f503",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2024/646/versions/20240429T112316Z.pdf",
      "captured_at": "2024-04-29T11:23:16Z",
      "label": "copy captured 2024-04-29",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240429112316id_/https://eprint.iacr.org/2024/646.pdf",
      "size": 549174,
      "sha256": "c8dda9ef7d7ba87bc11389f1a4774ffebce3ce1bf58f386ac73449255bf92c30",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/646.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 541403
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260301120749id_/https://eprint.iacr.org/2024/646.pdf",
      "captured_at": "2026-03-01T12:07:49Z",
      "size": 468457
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/646,\n      author = {Sanchita Ghosh and Anant Sharma and Sreetama Das and Shibdas Roy},\n      title = {Efficient Quantum Algorithm for SUBSET-SUM Problem},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/646},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/646}\n}"
}
