# C4Q: A Chatbot for Quantum

arXiv: https://arxiv.org/abs/2402.01738 · HTML: https://mlsanity.com/paper/2402.01738/

## Key facts

- Cited by 3 papers in the map (data through 14 Oct 2026).
- Builds on 4 of its 42 references that are in the map.
- First posted on arXiv 29 Jan 2024.

## Builds on (most cited first, 4 of 4)

- [BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding](https://mlsanity.com/paper/1810.04805/) (2018)
- [How to Design a Program Repair Bot? Insights from the Repairnator Project](https://mlsanity.com/paper/1811.09852/) (2018)
- [Explainable Software Bot Contributions: Case Study of Automated Bug Fixes](https://mlsanity.com/paper/1905.02597/) (2019)
- [Control-Flow Integrity: Precision, Security, and Performance](https://mlsanity.com/paper/1602.04056/) (2016)

## Built on by (most cited first, 3 of 3)

- [ChronoLLM: Customizing Language Models for Physics-Based Simulation Code Generation](https://mlsanity.com/paper/2508.13975/) (2025)
- [QSpark: Towards Reliable Qiskit Code Generation](https://mlsanity.com/paper/2507.12642/) (2025)
- [Architecture for a Trustworthy Quantum Chatbot](https://mlsanity.com/paper/2503.04875/) (2025)

## Abstract (arXiv)

Quantum computing is a growing field that promises many real-world applications such as quantum cryptography or quantum finance. The number of people able to use quantum computing is however still very small. This limitation comes from the difficulty to understand the concepts and to know how to start coding. Therefore, there is a need for tools that can assist non-expert in overcoming this complexity. One possibility would be to use existing conversational agents. Unfortunately ChatGPT and other Large-Language Models produce inaccurate results. This article presents C4Q, a chatbot that answers accurately basic questions and guides users when trying to code quantum programs. Contrary to other approaches C4Q uses a pre-trained large language model only to discover and classify user requests. It then generates an accurate answer using an own engine. Thanks to this architectural design, C4Q's answers are always correct, and thus C4Q can become a support tool that makes quantum computing more available to non-experts.
