Here is some code that I've written in Haskell. These packages are available on Hackage.
Here is a paper from 2016 about Haskell and Quantum Mechanics:
Scott N. Walck. Learn Quantum Mechanics with Haskell. In Johan Jeuring and Jay McCarthy, editors, Proceedings of the 4th and 5th International Workshop on Trends in Functional Programming in Education, volume 230 of Electronic Proceedings in Theoretical Computer Science, pages 31--46. Open Publishing Association, June 2016. [ DOI ]