Re: [Quantlib-users] nanoql: a stateless library derived from QuantLib 1.44, and checked against it
|
From: Gang N. <gan...@na...> - 2026-11-16 17:32:42
|
Hello all, Apologies: my message last night went out as HTML, and the list's archive shows it as raw markup. Here it is again as plain text. I'd like to share nanoql (https://nanoql.org), an open-source library derived from QuantLib 1.44. It keeps QuantLib's classes, names and mathematics, and changes the design around them: instruments, curves and models are immutable values, pricers are functions of them, and the evaluation date is an argument rather than a global setting. There are no observers, handles or lazy objects. It is written in C#, and Python, C, C++ and Excel reach it through one C interface over a native build. It is checked against QuantLib itself: 3,348,122 outputs recorded from QuantLib 1.44, each matched within a relative 1e-10 except 0.14% held to documented looser tolerances, and QuantLib's own test suite ported at its tolerances. Where nanoql's results differ from QuantLib's, mostly where it fixes a defect, each difference is listed with its own test: - how it is checked: https://nanoql.org/docs/checking.html - the figures: https://nanoql.org/validation/index.html - every divergence: https://nanoql.org/docs/divergences.html None of this would exist without QuantLib and the people who have built it over two decades. nanoql isn't affiliated with or endorsed by the QuantLib project, and it carries QuantLib's licence and notices. If you use QuantLib-Python, "pip install nanoql" (Windows, Linux and Apple silicon Macs) and the migration guide, https://nanoql.org/docs/migration/from-quantlib-python.html, are the quickest way in. I'd be glad of any feedback, above all on results that differ from what you'd expect: https://github.com/nanoql-dev/nanoql/discussions Best regards, Gang Ning |