A Haskell Adiabatic DSL: Solving Classical Optimization Problems on Quantum Hardware. Li, L., Young, D., Graves, J. B., Dissanayake, C., & Sabry, A. Proceedings of the ACM on Programming Languages, 9(ICFP):252, Association for Computing Machinery, New York, NY, USA, August, 2025. doi abstract bibtex In physics and chemistry, quantum systems are typically modeled using energy constraints formulated as Hamiltonians. Investigations into such systems often focus on the evolution of the Hamiltonians under various initial conditions, an approach summarized as Adiabatic Quantum Computing (AQC). Although this perspective may initially seem foreign to functional programmers, we demonstrate that conventional functional programming abstractions—specifically, the Traversable and Monad type classes—naturally capture the essence of AQC. To illustrate this connection, we introduce EnQ, a functional programming library designed to express diverse optimization problems as energy constraint computations (ECC). The library comprises three core components: generating the solution space, associating energy costs with potential solutions, and searching for optimal or near-optimal solutions. Because EnQ is implemented using standard Haskell, it can be executed directly through conventional classical Haskell compilers. More interestingly, we develop and implement a process to compile EnQ programs into circuits executable on quantum hardware. We validate EnQ's effectiveness through a number of case studies, demonstrating its capacity to express and solve classical optimization problems on quantum hardware, including search problems, type inference, number partitioning, clique finding, and graph coloring.
@article{Li2025,
author = {Li, Liyi and Young, David and Graves, James Bryan and Dissanayake, Chandeepa and Sabry, Amr},
title = {A Haskell Adiabatic DSL: Solving Classical Optimization Problems on Quantum Hardware},
year = {2025},
publisher = acm,
address = {New York, NY, USA},
volume = {9},
number = {ICFP},
doi = {10.1145/3747521},
abstract = {In physics and chemistry, quantum systems are typically modeled using energy constraints formulated as Hamiltonians. Investigations into such systems often focus on the evolution of the Hamiltonians under various initial conditions, an approach summarized as Adiabatic Quantum Computing (AQC). Although this perspective may initially seem foreign to functional programmers, we demonstrate that conventional functional programming abstractions—specifically, the Traversable and Monad type classes—naturally capture the essence of AQC. To illustrate this connection, we introduce EnQ, a functional programming library designed to express diverse optimization problems as energy constraint computations (ECC). The library comprises three core components: generating the solution space, associating energy costs with potential solutions, and searching for optimal or near-optimal solutions. Because EnQ is implemented using standard Haskell, it can be executed directly through conventional classical Haskell compilers. More interestingly, we develop and implement a process to compile EnQ programs into circuits executable on quantum hardware. We validate EnQ's effectiveness through a number of case studies, demonstrating its capacity to express and solve classical optimization problems on quantum hardware, including search problems, type inference, number partitioning, clique finding, and graph coloring.},
journal = pacmpl,
month = aug,
eid = {252},
pages = {252},
numpages = {31},
keywords = {Adiabatic Quantum Computation, Energy Constraint Computation, Functional Programming},
webnote = {ICFP '25},
bibsource = qplbib
}
Downloads: 0
{"_id":"p7dxNSsBGsi2Bun6X","bibbaseid":"li-young-graves-dissanayake-sabry-ahaskelladiabaticdslsolvingclassicaloptimizationproblemsonquantumhardware-2025","author_short":["Li, L.","Young, D.","Graves, J. B.","Dissanayake, C.","Sabry, A."],"bibdata":{"bibtype":"article","type":"article","author":[{"propositions":[],"lastnames":["Li"],"firstnames":["Liyi"],"suffixes":[]},{"propositions":[],"lastnames":["Young"],"firstnames":["David"],"suffixes":[]},{"propositions":[],"lastnames":["Graves"],"firstnames":["James","Bryan"],"suffixes":[]},{"propositions":[],"lastnames":["Dissanayake"],"firstnames":["Chandeepa"],"suffixes":[]},{"propositions":[],"lastnames":["Sabry"],"firstnames":["Amr"],"suffixes":[]}],"title":"A Haskell Adiabatic DSL: Solving Classical Optimization Problems on Quantum Hardware","year":"2025","publisher":"Association for Computing Machinery","address":"New York, NY, USA","volume":"9","number":"ICFP","doi":"10.1145/3747521","abstract":"In physics and chemistry, quantum systems are typically modeled using energy constraints formulated as Hamiltonians. Investigations into such systems often focus on the evolution of the Hamiltonians under various initial conditions, an approach summarized as Adiabatic Quantum Computing (AQC). Although this perspective may initially seem foreign to functional programmers, we demonstrate that conventional functional programming abstractions—specifically, the Traversable and Monad type classes—naturally capture the essence of AQC. To illustrate this connection, we introduce EnQ, a functional programming library designed to express diverse optimization problems as energy constraint computations (ECC). The library comprises three core components: generating the solution space, associating energy costs with potential solutions, and searching for optimal or near-optimal solutions. Because EnQ is implemented using standard Haskell, it can be executed directly through conventional classical Haskell compilers. More interestingly, we develop and implement a process to compile EnQ programs into circuits executable on quantum hardware. We validate EnQ's effectiveness through a number of case studies, demonstrating its capacity to express and solve classical optimization problems on quantum hardware, including search problems, type inference, number partitioning, clique finding, and graph coloring.","journal":"Proceedings of the ACM on Programming Languages","month":"August","eid":"252","pages":"252","numpages":"31","keywords":"Adiabatic Quantum Computation, Energy Constraint Computation, Functional Programming","webnote":"ICFP '25","bibsource":"Quantum Programming Languages & Verification Bibliography, https://git.io/qpl-bib","bibtex":"@article{Li2025,\n author = {Li, Liyi and Young, David and Graves, James Bryan and Dissanayake, Chandeepa and Sabry, Amr},\n title = {A Haskell Adiabatic DSL: Solving Classical Optimization Problems on Quantum Hardware},\n year = {2025},\n publisher = acm,\n address = {New York, NY, USA},\n volume = {9},\n number = {ICFP},\n doi = {10.1145/3747521},\n abstract = {In physics and chemistry, quantum systems are typically modeled using energy constraints formulated as Hamiltonians. Investigations into such systems often focus on the evolution of the Hamiltonians under various initial conditions, an approach summarized as Adiabatic Quantum Computing (AQC). Although this perspective may initially seem foreign to functional programmers, we demonstrate that conventional functional programming abstractions—specifically, the Traversable and Monad type classes—naturally capture the essence of AQC. To illustrate this connection, we introduce EnQ, a functional programming library designed to express diverse optimization problems as energy constraint computations (ECC). The library comprises three core components: generating the solution space, associating energy costs with potential solutions, and searching for optimal or near-optimal solutions. Because EnQ is implemented using standard Haskell, it can be executed directly through conventional classical Haskell compilers. More interestingly, we develop and implement a process to compile EnQ programs into circuits executable on quantum hardware. We validate EnQ's effectiveness through a number of case studies, demonstrating its capacity to express and solve classical optimization problems on quantum hardware, including search problems, type inference, number partitioning, clique finding, and graph coloring.},\n journal = pacmpl,\n month = aug,\n eid = {252},\n pages = {252},\n numpages = {31},\n keywords = {Adiabatic Quantum Computation, Energy Constraint Computation, Functional Programming},\n webnote = {ICFP '25},\n bibsource = qplbib\n}\n\n","author_short":["Li, L.","Young, D.","Graves, J. B.","Dissanayake, C.","Sabry, A."],"key":"Li2025","id":"Li2025","bibbaseid":"li-young-graves-dissanayake-sabry-ahaskelladiabaticdslsolvingclassicaloptimizationproblemsonquantumhardware-2025","role":"author","urls":{},"keyword":["Adiabatic Quantum Computation","Energy Constraint Computation","Functional Programming"],"metadata":{"authorlinks":{}}},"bibtype":"article","biburl":"https://raw.githubusercontent.com/QuantumPL/bib/main/bbt.bib","dataSources":["JG9W34HAXfSxsC6ML"],"keywords":["adiabatic quantum computation","energy constraint computation","functional programming"],"search_terms":["haskell","adiabatic","dsl","solving","classical","optimization","problems","quantum","hardware","li","young","graves","dissanayake","sabry"],"title":"A Haskell Adiabatic DSL: Solving Classical Optimization Problems on Quantum Hardware","year":2025}