Squlearn
scikit-learn interface for quantum algorithms
Install / Use
/learn @sQUlearn/SqulearnREADME
sQUlearn is a user-friendly, NISQ-ready Python library for quantum machine learning (QML), designed for seamless integration with classical machine learning tools like scikit-learn. The library's dual-layer architecture serves both QML researchers and practitioners, enabling efficient prototyping, experimentation, and pipelining. sQUlearn provides a comprehensive tool set that includes both quantum kernel methods and quantum neural networks, along with features like customizable data encoding strategies, automated execution handling, and specialized kernel regularization techniques. By focusing on NISQ-compatibility and end-to-end automation, sQUlearn aims to bridge the gap between current quantum computing capabilities and practical machine learning applications.
sQUlearn offers scikit-learn compatible high-level interfaces for various kernel methods, QNNs and quantum reservoir computing. They build on top of the low-level interfaces of the QNN engine and the quantum kernel engine. The executor is used to run experiments on simulated and real backends of the PennyLane, Qiskit and Qulacs frameworks.
<p align="center"> <img width=600px alt="sQUlearn schematic" src="https://raw.githubusercontent.com/sQUlearn/squlearn/main/docs/_static/schematic.png" /> </p>Prerequisites
The package requires at least Python 3.9.
Install sQUlearn
Stable Release
To install the stable release version of sQUlearn, run the following command:
pip install squlearn
Alternatively, you can install sQUlearn directly from GitHub via
pip install git+ssh://git@github.com:sQUlearn/squlearn.git
Examples
There are several more elaborate examples available in the folder ./examples which display the features of this package.
Tutorials for beginners can be found at ./examples/tutorials.
To install the required packages, run
pip install .[examples]
Contribute to sQUlearn
Thanks for considering contributing to sQUlearn! Please read our contribution guidelines before you submit a pull request.
License
sQUlearn is released under the Apache License 2.0
Cite sQUlearn
If you use sQUlearn in your work, please cite our paper:
Kreplin, D. A., Willmann, M., Schnabel, J., Rapp, F., Hagelüken, M., & Roth, M. (2025). sQUlearn: A Python Library for Quantum Machine Learning. IEEE Software, 42(5), 65–72. https://doi.org/10.1109/MS.2025.3527736
Contact
This project is maintained by the quantum computing group at the Fraunhofer Institute for Manufacturing Engineering and Automation IPA.
http://www.ipa.fraunhofer.de/quantum
For general questions regarding sQUlearn, use the GitHub Discussions or feel free to contact sQUlearn@gmail.com.
Acknowledgements
This project was supported by the German Federal Ministry of Economic Affairs and Climate Action through the projects AutoQML (grant no. 01MQ22002A) and AQUAS (grant no. 01MQ22003D), as well as the German Federal Ministry of Education and Research through the project H2Giga Degrad-EL3 (grant no. 03HY110D).
Disclaimer
This software is provided strictly for research and experimental purposes. It represents early-stage exploratory work and has not been validated, verified, or tested for any operational, commercial, or production use.
Technology Readiness Level: TRL 1–3 (Basic principles observed through proof-of-concept)
- No claims are made regarding reliability, accuracy, or fitness for any particular purpose
- The codebase may be incomplete, unstable, or subject to fundamental changes without notice
- Results produced by this software are not guaranteed to be reproducible or correct
- This project exists solely for academic inquiry, algorithmic exploration, and open scientific collaboration
This software is not designed, intended, or suitable for deployment in any real-world system or application. Users assume all responsibility for any use beyond basic research experimentation.
Related Skills
claude-opus-4-5-migration
109.4kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
349.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
50.9k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.8kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
