Skip to main content

Quantum Algorithm for Solving Pell’s Equation

  • Reference work entry
  • First Online:
Encyclopedia of Algorithms
  • 91 Accesses

Years and Authors of Summarized Original Work

  • 2002; Hallgren

Problem Definition

Pell’s equation is one of the oldest studied problem in number theory. For a positive square-free integer d, Pell’s equation is \(x^{2} -\mathit{dy}^{2} = 1\), and the problem is to compute integer solutions x, y of the equation [8, 10]. The earliest algorithm for it uses the continued fraction expansion of \(\sqrt{ d}\) and dates back to 1000 a.d. by Indian mathematicians. Lagrange showed that there are an infinite number of solutions of Pell’s equation. All solutions are of the form \(x_{n} + y_{n}\sqrt{d} = (x_{1} + y_{1}\sqrt{d})^{n}\), where the smallest solution, \((x_{1},y_{1})\), is called the fundamental solution. The solution \((x_{1},y_{1})\) may have exponentially many bits in general in terms of the input size, which is \(\log d\), and so cannot be written down in polynomial time. To resolve this difficulty, the computational problem is recast as computing the integer closest to the regulator \(...

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 1,599.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 1,999.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Recommended Reading

  1. Buchmann J, Thiel C, Williams HC (1995) Short representation of quadratic integers. In: Bosma W, van der Poorten AJ (eds) Computational algebra and number theory, Sydney 1992. Mathematics and its applications, vol 325. Kluwer Academic, Dordrecht, pp 159–185

    Google Scholar 

  2. Buchmann JA, Williams HC (1989) A key exchange system based on real quadratic fields (extended abstract). In: Brassard G (ed) Advances in cryptology-CRYPTO ’89, 20–24 Aug 1990. Lecture notes in computer science, vol 435. Springer, Berlin, pp 335–343

    Google Scholar 

  3. Cohen H (1993) A course in computational algebraic number theory. Graduate texts in mathematics, vol 138. Springer, Berlin/Heidelberg

    Google Scholar 

  4. Eisentraeger K, Hallgren S, Kitaev A, Song F (2014) A quantum algorithm for computing the unit group of an arbitrary degree number field. In: Proceedings of the 46th ACM symposium on theory of computing

    Google Scholar 

  5. Hallgren S (2007) Polynomial-time quantum algorithms for Pell’s equation and the principal ideal problem. J ACM 54(1):1–19

    Article  MathSciNet  MATH  Google Scholar 

  6. Hamdy S, Maurer M (1999) Feige-fiat-shamir identification based on real quadratic fields. Techincal report TI-23/99. Technische Universität Darmstadt, Fachbereich Informatik. http://www.informatik.tu-darmstadt.de/TI/Veroeffentlichung/TR/

  7. Jozsa R (2003) Notes on Hallgren’s efficient quantum algorithm for solving Pell’s equation. Techincal report, quant-ph/0302134

    Google Scholar 

  8. Lenstra HW Jr (2002) Solving the Pell equation. Not Am Math Soc 49:182–192

    MathSciNet  MATH  Google Scholar 

  9. Thiel C (1995) On the complexity of some problems in algorithmic algebraic number theory. Ph.D. thesis, Universität des Saarlandes, Saarbrücken

    Google Scholar 

  10. Williams HC (2002) Solving the Pell equation. In: Proceedings of the millennial conference on number theory, pp 397–435

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sean Hallgren .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer Science+Business Media New York

About this entry

Cite this entry

Hallgren, S. (2016). Quantum Algorithm for Solving Pell’s Equation. In: Kao, MY. (eds) Encyclopedia of Algorithms. Springer, New York, NY. https://doi.org/10.1007/978-1-4939-2864-4_312

Download citation

Publish with us

Policies and ethics