Next Article in Journal
Bell–CHSH Under Setting-Dependent Selection: Sharp Total-Variation Bounds and an Experimental Audit Protocol
Previous Article in Journal
Counterfactual Quantum Control: Review and Applications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Pushing the Limits of Large Language Models in Quantum Operations

by
Dayton C. Closser
1,* and
Zbigniew J. Kabala
2
1
Department of Electrical & Computer Engineering, Pratt School of Engineering, Duke University, Durham, NC 27708, USA
2
Department of Civil & Environmental Engineering, Pratt School of Engineering, Duke University, Durham, NC 27708, USA
*
Author to whom correspondence should be addressed.
Quantum Rep. 2026, 8(1), 7; https://doi.org/10.3390/quantum8010007
Submission received: 20 October 2025 / Revised: 14 January 2026 / Accepted: 14 January 2026 / Published: 19 January 2026

Abstract

What is the fastest Artificial Intelligence Large Language Model (AI LLM) for generating quantum operations? To answer this, we present the first benchmarking study comparing popular and publicly available AI models tasked with creating quantum gate designs. The Wolfram Mathematica framework was used to interface with the six AI LLMs, including Google Gemini 2.0 Flash, Anthropic Claude 3 Haiku, WolframLLM Notebook Assistant For Mathematica V14.3.0.0, OpenAI ChatGPT Omni 4 Mini, Google Gemma 3 4b 1t, and DeepSeek Chat V3. Our novel study found the following: (1) Gemini 2.0 Flash is overall the fastest AI LLM of the models tested in producing average quantum gate designs at 2.66101 s, factoring in the “thinking” execution time and ServiceConnect network latencies. (2) On average, four out of the ten quantum operations that the six LLMs produced compiled in Python version 3.13.5 (40.8% success rate). (3) Quantum operations averaged approximately 21–45 Lines of Code (omitting nonsensical outliers). (4) DeepSeek Chat V3 produced the shortest code with an average of 21.6 lines. This comparison evaluates the time taken by each AI LLM platform to generate quantum operations (including ServiceConnect networking times). These findings highlight a promising horizon where publicly available Large Language Models can become fast collaborators with quantum computers, enabling rapid quantum gate synthesis and paving the way for greater interoperability between two remarkable and cutting-edge technologies.

1. Introduction

The field of employing public Large Language Models in quantum gate operations is a novel topic of research. To our knowledge, there are no other results directly comparable to what we present in this paper. We conducted keyword searches on Google Scholar and found no matching results. However, we have added comparisons to other model papers where possible. The key difference between public and other models has to do with whether they are widely available general-purpose LLMs or not. This moniker stands in contrast to other “specialized LLMs,” such as those employed by Nicolas Dupuis et al. (more about these differences are discussed in the Literature Review section) [1]. Moreover, today’s quantum computers represent a crucial stage in an era of new performance and efficacy milestones. These systems, known as Noisy Intermediate-Scale Quantum (NISQ) computers, vary in size, “with a number of qubits ranging from 50 to a few hundred [2].” Key challenges confronting today’s NISQ systems include reliability and scalability.
Reliability-wise, NISQ systems face complex quantum noise environments. “Noisy emphasizes…imperfect control over those qubits; the noise will place serious limitations on what quantum devices can achieve in the near term [2].” When noise undesirably meshes with quantum information, that information becomes “entangled” with the environment in a process known as decoherence. Approaches to counter undesirable entanglement with the environment, or decoherence-induced errors in quantum computers, are addressed by the field of quantum error correction. This is a process whereby quantum information is encoded into a larger subspace of Hilbert space by monitoring symmetries of code space [3]. The end-goal is to achieve “fault-tolerance…the property that a circuit overall can be more reliable than the faulty gates that make it up [4].” This is especially relevant in “large-scale quantum computing [which] requires quantum error correction and fault-tolerance protocols to control the growth of errors [5].”
Scalability-wise, the hardware of NISQ systems faces challenges with control and confinement, or, again, coupling to the environment. This warrants approaches such as atomic, molecular, and optical physics and human-crafted hardware [3]. It should be mentioned here that some entanglements are desirable by design, as “the power of quantum parallelism [multiple operations] relies on the phenomenon [6].” Entanglement plays an “intriguing role…in quantum computing. As with most good things, it is best consumed in moderation [7].” While much research in the field focuses on the former two factors, we suggest a third factor may become a topic of consideration for quantum computers: interoperability, or the ability of quantum systems to effectively collaborate and communicate with other technologies and users. Historically, the design of quantum circuits has relied heavily on human expertise. However, the advent of accessible Artificial Intelligence Large Language Models (AI LLMs, or LLMs for short) and machine learning methodologies presents an opportunity to systematically explore and generate quantum circuit architectures that implement desired quantum operations. We argue this third factor of interoperability should be considered, especially “given the successes of both machine learning and quantum computing, combining these two strands of research is an obvious direction [8].”
Although research at the intersection of LLMs and quantum computing is still emerging, a crucial gap remains: a rigorous evaluation of publicly available AI models for quantum design applications. Our manuscript addresses this gap by delivering one of the first systematic benchmarks of leading AI models, such as Google Gemini 2.0 Flash, Anthropic Claude 3 Haiku, WolframLLM Notebook Assistant For Mathematica V14.3.0.0, OpenAI ChatGPT Omni 4 Mini, Google Gemma 3 4b 1t, and DeepSeek Chat V3, focused specifically on quantum circuit design and gate synthesis. In summary, such systematic comparisons of AI models specifically benchmarking fast quantum design and gate synthesis have been limited and nascent, until now.

2. Literature Review

The Web of Science is the gold-standard database of peer-reviewed journal articles. A title search within it for “quantum comput ∗” (where “∗” stands for a wild card; comput covers computation, computational, computer, computers, etc.) yields 8139 entries with the earliest published in 1975. The field of quantum computing or, more generally, quantum information science, is maturing rapidly with a number of research and review articles published in top journals. As examples of this, we provide the next three sections and perspectives.

2.1. Quantum Information Science Perspectives

The field of quantum information science is rapidly evolving. Ladd et al. (2010) in Nature explored whether storing, transmitting, and processing information encoded in uniquely quantum systems is feasible, noting that while promising, it remains unclear which technology will prevail [9]. O’Brien (2007) in Science highlighted that all-optical quantum computing became feasible with single-photon sources and detectors as early as 2001, though practical scaling presents challenges [10]. Belenchia, Wald, and Giacomini argued “that a quantum massive particle should be thought of as being entangled with its own Newtonian-like gravitational field, and thus that a Newtonian-like gravitational field can transmit quantum information [11].”
Wasielewski et al. (2020) in Nature Reviews Chemistry emphasized molecules’ quantum properties as new avenues for advancing quantum information science and its applications [12]. Moreover, this work has been further advanced by Moreno-Pineda and Wernsdorfer (2021), Toninelli et al. (2021), Harvey and Wasielewski (2021), Verma et al. (2026), De Bernardis et al. (2025), Alexeev et al. (2025), Morrillo et al. (2024), Hui et al. (2024), Mao et al. (2023), Chizzini et al. (2022), Scholes (2023), Chiesa et al. (2022), and over 400+ other works [13,14,15,16,17,18,19,20,21,22,23,24].
Bahrami et al. “computed the decoherence rate for two quite common types of environment: thermal radiation and background gas [25].” Additionally, Tóth and Apellaniz discussed applications for quantum Fisher information, such as ”how it can be used to obtain a criterion for a quantum state to be a macroscopic superposition [26].” Nayak et al. (2008), in Reviews of Modern Physics, focused on topological quantum computation using non-Abelian anyons, which offered fault-tolerance through nonlocal encoding [27].
Trapped-ion quantum computing, reviewed in Applied Physics Reviews by Bruzewicz et al. (2019), shows promise, with few-ion systems already demonstrating quantum algorithms [28]. Reiher et al. (2017) argued in PNAS that quantum devices are nearing computational power beyond classical supercomputers and are well suited for studying complex chemical reactions [29]. Raussendorf and Briegel (2001) proposed one-way quantum computers based on cluster states, where computation occurs via one-qubit measurements [30].

2.2. Quantum Error Correction Perspectives

Famously, John Preskill (2018) coined the name Noisy Intermediate-Scale Quantum (NISQ) devices, and in his paper, described the upcoming era of 50–100-qubit machines to outpace classical computers, though still fully expected fault-tolerant computing to require improved gates first to accomplish this feat [2]. Bourassa et al. (2021) advocated photonics as a modular, room-temperature platform for scalable, fault-tolerant quantum computing [31], while Steiger et al. (2018) introduced ProjectQ, an open-source framework to develop and simulate quantum algorithms [32].
Lohani et al. (2022) proposed data-centric machine learning methods that enhance quantum state reconstruction accuracy without changing model architectures [33]. Tóth and Apellaniz (2014) also reviewed quantum metrology advances and how noise limits precision [26]. Kitaev (2003) described fault-tolerant 2D quantum computation using anyonic excitations and their braiding operations [34]. We note that the “break-even point” of quantum error correction has so far only been demonstrated within the framework of the bosonic codes in superconducting and trapped-ion realizations (Long, 2024; Chizzini et al., 2022; Chlesa et al., 2022) [22,24,35].

2.3. Quantum and AI LLM Perspectives

We divide the Quantum and AI LLM Perspectives subsection into two further divisions, highlighting progress as well as the interoperability between these two technologies.

2.3.1. AI LLM Challenges and Innovations

Admittedly, with many new promising technologies, there are also expected challenges for LLMs, such as NP-hard (Nondeterministic Polynomial-time-hard) optimization problems. For example, this includes problems such as quantum Traveling Salesman Problems (TSP) [36]. These TSP solutions can be verified (in polynomial time), even if finding them might take an impractically long, non-polynomial time (like exponential time). However, because today’s LLMs lack “a truly robust reasoning mechanism,” or a logic module, we anticipate that LLMs will remain encumbered by NP-hard optimization problems for the foreseeable future [37].
Having said that, LLMs as a technology are also rapidly improving their capabilities, including coding accuracy. A number of benchmarks suggest that their capabilities are growing exponentially, with task complexity doubling roughly every 7 months. According to Bermejo et al. (2025), advanced LLMs now surpass even top human coders in accuracy for complex text analysis and select coding tasks [38]. Even though LLMs learn patterns from static data, while reinforcement learning (RL) methods learn behavior from dynamic feedback, we cautiously speculate that LLMs are likely to catch up with, and perhaps surpass, RL in the next few years. We also base this enthusiasm on the remarkable progress made between the publication of Sogabe et al. (2022) and Karuppasamy (2025) [39,40].

2.3.2. The Interoperability Between Quantum and AI LLM Technologies

In Current Opinion in Structural Biology, Lappala (2024) highlighted how integrating AI, machine learning, and quantum computing is revolutionizing molecular dynamics simulations, calling for multidisciplinary approaches to meet emerging challenges [41]. Moreover, other multidisciplinary approaches between LLMs and other fields are already emerging, such as those between LLMs and healthcare diagnostics [42,43,44]. And in their works, senior research scientists Srinivasan Arunachalam and Ronald de Wolf hinted at interoperability in several ways, including using “quantum machine learning for “quantum supremacy”, i.e., for solving some tasks  using 50–100 qubits in a way that is convincingly faster than possible on large classical computers [8].” In essence, could certain “practical machine learning problems [dovetail] with a large provable quantum speed-up? [8].”
At the same time, understanding the potential impacts of interoperability between technologies is significant, especially considering “the integration of artificial intelligence and quantum computing…could introduce new issues related to data quality [41].” Other researchers have also suggested interoperability between LLMs and quantum computers: work by Nicolas Dupuis et al. has discussed “an area of interest…to develop specialized LLMs for quantum code generation [1].” These specialized LLMs employed a “Granite code model…part of a family of decoder-based models for generative AI code tasks [1].” Furthermore, the authors recognized that “there is a noticeable gap in the application of machine learning and classical intelligence systems and algorithms to augment quantum ecosystems and platforms and empowering quantum computing practitioners [1].” In addition, Sanjay Vishwakarma et al. employed Qiskit HumanEval for “quantum computing tasks, each accompanied by a prompt, a canonical solution, a comprehensive test case, and a difficulty scale to evaluate the correctness of the generated solutions [45].”
Although machine learning has been employed for generating/programming quantum gates [46,47,48], no comparison of efficiency of different public LLMs, which we consider here, has been offered. A similar story holds for neural networks [49,50,51,52] and for physics-informed neural networks [53]. Analogously, broadly relevant subjects, such as programmable quantum gate arrays [54], control of quantum gates [55,56,57], experimenting with quantum gates [58,59], scalable programmable quantum gates [60,61,62], operator-orderization of quantum gates [63,64,65], and others do not offer a comparison of the efficiency of different publicly available LLMs, which we consider here.

3. Materials and Methods

3.1. The Wolfram Mathematica Platform

The core of our Materials and Methods section involves using the Wolfram Mathematica framework. Significantly, we choose Wolfram Mathematica because it is a capable, trusted platform for research. Moreover, it has native integration with WolframLLM Notebook Assistant, and third-party support for a litany of other LLMs, including the 6 LLMs we tested, namely Google Gemini 2.0 Flash, Anthropic Claude 3 Haiku, WolframLLM Notebook Assistant For Mathematica V14.3.0.0, OpenAI ChatGPT Omni 4 Mini, Google Gemma 3 4b 1t, and DeepSeek Chat V3 (herein referenced by their single names: Gemini, Claude, WolframLLM, OpenAI, Gemma, and DeepSeek, respectively).
Wolfram Mathematica also includes a wide range of additional modules, such as those for quantum computing and machine learning [66,67]. Its underlying Wolfram Language, a symbolic programming language, empowers rapid prototyping to execution [68]. For example, tasks such as tallying numerical outputs or converting between units (such as between seconds and milliseconds) could be performed quickly. Combined with the framework’s extensions, modules, and in-house capabilities, this clearly drives our choice of Wolfram Mathematica for this study. In addition, by using a single framework, it ensures maximum effectiveness and consistent results.

3.2. The Methodology and Proposal

In real-world experiments, classical data is encoded into quantum states generally as follows in the diagram below, in a clock-wise order (top-left to bottom-right in Figure 1).
1.
Preparation/Code-Writing Stage: The quantum operations are input by a user into a networked computer, as shown in Figure 1.
2.
Networking/Transmission Stage: The operations are sent through the Internet via a framework such as Qiskit to a quantum center, like IBM’s Washington DC (us-east), as shown in Figure 1 and Figure 2.
3.
Pre-Measurement Stage: Through a hybrid classical/quantum control system, the request is passed to the actual quantum computer chip-set, e.g., the Heron r3 155-qubit system, as shown in Figure 2.
4.
Measurement/Execution Stage: The qubit executes the operations, the readout measures the results, and the data is returned back through the chain.
Figure 2. Snapshot from the IBM Quantum Experience Website.
Figure 2. Snapshot from the IBM Quantum Experience Website.
Quantumrep 08 00007 g002
In our experiments, we focused our attention on the Preparation/Code-Writing Stage. The experiment’s first step here involved creating a master quantum prompt table (listed in the Appendix as Table A5, Table A6, Table A7, Table A8 and Table A9), which listed every experiment that would be input. We proposed to have public Large Language Models devise the quantum gate operations as opposed to writing them ourselves, and to see how this would stack performance-wise between models. To do this, we devised four stages, outlined below.
First, the concepts chosen were an array of topics pulling from quantum gates (such as the Pauli Gate Set or Clifford Gates) to quantum algorithmic experiments (such as Quantum Fourier Transforms). Twenty-five prompts were elected and chosen to gain a sense of how LLMs would handle the subject materials. As an example, Appendix Table A5 lists a concept, a prompt for the LLMs we test, a goal of the prompt, and an expected output. In addition, the number of prompts was primarily chosen because of the limitations on how much execution time was permitted on each LLM service respective of cost and the project’s budget.
Second, we employed Wolfram Mathematica to input the prompts (found in Appendix Table A5, Table A6, Table A7, Table A8 and Table A9) in a notebook file, then one by one sent each of these prompts to an LLM service. During this time, we measured the “thinking” execution time, as well as the ServiceConnect network latencies from our computer running Wolfram Mathematica to the LLM services, and the time it took for the results to return back to us. Because it was not possible to measure the black box of the LLM itself (as the LLMs run on private third-party servers), these measurements allowed us to obtain a sense of how long each AI platform took to respond to prompt requests and connections. Unfortunately, at the time of writing this, measuring the connection time for the internal WolframLLM Notebook Assistant was not possible, as there was no native API support for measuring the connection time to this internal service.
Third, these results were then saved to text files, copied, filtered, and then indented so that they could be executed in their native language, such as Python. This entailed painstakingly and carefully removing the extraneous content from 150 prompts. This filtering included removing uncalled for header information or newline characters that the LLMs provided with every program. During the removal, we were careful to carve out only content specifically between the comments of #START and #END that we requested in the original prompts (available in the Appendix as Table A5, Table A6, Table A7, Table A8 and Table A9). When an AI model did not follow instructions, such as either providing a blank response or one that did not have appropriate termination, the prompt was left unedited.
Fourth and finally, the results were then executed in a Jupyter Notebook environment to see if they would compile. This environment was run on a Linux system with an Intel i7-7700HQ (3.80 GHz) with 16 gigabytes of RAM; see further specifications in Figure 3.
We looked at the success rates of each prompt measured by the output created and whether or not it would compile in a compiler. The below results are taken from Wolfram Mathematica, Jupyter Notebook, Python, and GenAI to produce open-source graphics from the corresponding data.

4. Results

To theoretically compare our performance results, we devised the following null and alternative hypotheses:
Hypothesis 0
(Null Hypothesis). There is no statistically significant difference in the average execution times among the LLMs when generating quantum gate operations from identical prompts.
Hypothesis 1
(Alternative Hypothesis). At least one LLM has a statistically different average execution time compared to the others.
We first graphed the results of all the LLMs, as shown in Figure 4, Figure 5, Figure 6, Figure 7, Figure 8 and Figure 9. The window chosen between 0 and 35 s was optimal for viewing the range of data from all six of the models. This range was also elected because of the generous feedback provided during this manuscript’s peer review process. Out of these models, five of the six LLMs generated consistently and relatively similarly low execution times for synthesizing quantum gates (Gemini, Claude, WolframLLM, Gemma, and OpenAI).
In contrast, DeepSeek was, on average, approximately twice as slow with its execution times. It is worth noting that since we do not have access to the black box of the LLM service providers, this execution time also included the time to file the request with the LLM service, as well as the “return trip” of the prompt. We will later discuss this trip to the service provider as a ServiceConnect time.
Gemini was the fastest LLM, on average, to execute our prompts.
As shown in Table 1, Gemini was followed by Claude, WolframLLM, OpenAI, Gemma, and DeepSeek, respectively. DeepSeek exhibited notably higher latency compared to the other LLMs.
Then, applying a significance test, the following were calculated:
Total time = 30.87 s;
Mean time ( x ¯ ):
x ¯ = 30.87 6 = 5.478   s
Hypothesis 0
(Null Hypothesis). There is no statistically significant difference in the average execution times among the LLMs when generating quantum gate operations from identical prompts.
Hypothesis 1
(Alternative Hypothesis). At least one LLM has a statistically different average execution time compared to the others.
H 0 : μ 1 = μ 2 = μ 3 = μ 4 = μ 5 = μ 6
H a : At   least   one   μ i   differs .
Level of significance: α = 0.05 .

5. Computation of Total Variance

S S = ( x i x ¯ ) 2
S S = ( 2.67 5.478 ) 2     + ( 2.72 5.478 ) 2     + ( 3.48 5.478 ) 2     + ( 4.55 5.478 ) 2     + ( 5.22 5.478 ) 2     + ( 12.23 5.478 ) 2 S S = 65.952
Degrees of freedom:
d f = n 1 = 6 1 = 5
M S = S S d f = 65.952 5 = 13.190

6. Approximate F-Test

We also perform an F-Test, which looks at approximate within-group variances of σ 2 = 0.25 .
F = M S b e t w e e n M S w i t h i n = 13.190 0.25 = 52.76
Critical value:
F 0.05 , ( 5 , ) 2.21
Since F = 52.76 2.21 , we have p < 0.001 .
Therefore, we reject H 0 . There are statistically significant differences among the six models’ average execution times at α = 0.05 .

7. Ranking

At the 95% significance level (with an α = 0.05 ), the mean execution times differ statistically significantly. In particular, DeepSeek shows a considerably longer average runtime, while Gemini performs the fastest overall, evident in Table 2.

7.1. ServiceConnect Times

Next, ServiceConnect times were compared across five of the six LLMs tested (as an aside, the internal WolframLLM service does not support this API call within Wolfram Mathematica, so it could not be compared). It is worth reiterating that since we do not have access to the black box of the LLM service providers, we can only estimate the true execution time considering the time to file a request with the LLM service, as well as the “return trip” of the prompt. The initial trip to the service provider is known as the ServiceConnect time.
Also, the window chosen for our ServiceConnect tables was elected as 0–100 milliseconds, as this was optimal for viewing the range of data from all six of the models. Again, this was also chosen based upon peer review feedback in the making of this manuscript. These are composites of the total execution time measured above, but specifically the time that Wolfram Mathematica took to connect to each LLM service. We measured this to provide us with a picture of the networking latencies that could exist during testing. For example, using a different network could induce extra time in packet delivery from our system to that of the LLM providers.
Because of the volatility in these graphs, we plotted a five-point moving average of the data, as measured by the number of points (twenty-five points) and their respective times, averaged, as shown in Table 3. Evidently, DeepSeek was the average relative fastest, followed by Gemini and OpenAI (Figure 10, Figure 11 and Figure 12). Gemma and Claude were the slowest (Figure 13 and Figure 14); however, they were tested at a different point in time in the writing of this work, so this likely explains the gap from the other LLMs, as seen in Figure 15. Additionally, we provided these data in tabular form to give another perspective on the results; see Table 3.

7.2. Quantitative Analysis

We sought to find out how common certain solutions were as LLM responses to our prompts. The major frameworks and languages in open-source quantum computing are Qiskit (Python), Cirq (Python), OpenQASM, Q# (Microsoft’s Quantum Development Kit), and Braket SDK (Software Development Kit, Python). We grouped these languages into four buckets: Qiskit, Cirq, OpenQASM, and Other, as shown in Table 4. We were able to identify programming languages by keyword analysis (using regular expressions) as well as program statements belonging to a particular framework (e.g., Qiskit uses a Python import statement explicitly calling for Qiskit or a mention to QuantumCircuit, or Cirq is explicitly stated) [70,71]. When the prompt was empty, devoid of content, employed another framework, or something else occurred, we grouped this into the “Other” bucket. We then provided totals for this analysis.
Remarkably, as shown in Table 4, there was a considerable bias for Qiskit, clocking in at 79.3% of the provided solutions. In fact, even Gemini, a Google product, used Qiskit as opposed to Google’s native Cirq. Unexpectedly, Gemma employed a number of solutions not based on quantum frameworks at all, but in pure Python, C, and C++. OpenAI was the only LLM to purely use Qiskit.

7.3. Lines of Code (LoC) by Prompt

Next, we counted the Lines of Code (LoC) between the #START and #END comments that we had specified in our instructions, as seen in the master quantum prompt table (in the Appendix as Table A5, Table A6, Table A7, Table A8 and Table A9). Files that did not have #START and #END comment termination were estimated, and are marked with a single asterisk *, as shown in Table 5.

Average Six-Way Comparison

We then graphed the overall average Lines of Code per each prompt and per model, as shown in Figure 16. Because Gemma produced extreme outliers, we elected to use the upper range of our typical mean estimate of 45 LoC, as shown in the footnote of Table 5.

7.4. Execution Compilation Success Rate

Because the LLMs generally do not output Python or other programming language code in a compiler-friendly format, we often found that the code would not execute without the filtering process (discussed earlier in the Materials and Methods section). The compilation results and their respective failures and errors are the results even after this filtering. Some programs, such as OpenAI Prompt-2, required only new-line filtering, which was a consequence of the Large Language Model’s output among all the prompts and responses. Otherwise, OpenAI Prompt-2 produced output normally, as shown in Figure 17 and Figure 18.
We observed that OpenAI, Gemini, WolframLLM, DeepSeek, Gemma, and Claude performed at a 40.8% success rate (59.2% failure rate), as shown in Figure 19. This value was significantly impacted by several issues, including Gemma providing responses in a format not requested, as well as LLMs calling aer from qiskit, as opposed to the newer package, qiskit-aer. It is important to note that the successes reflected here only indicate that the program executed did not return an error.
As evident in Table A1, Table A2, Table A3 and Table A4, no prompt other than Prompt 13 was failed equally across LLMs. Even in this singular case of Prompt 13, the errors between LLMs (DeepSeek vs. WolframLLM) were completely different (note a QasmQobj error versus a classical bit index out-of-range error, as shown in Table A1).

8. Discussion

Following testing, it became clear from these results that Gemini was the fastest LLM at producing quantum operations. In all, if we consider the LLM execution time data from Table 1 (measured in seconds), which shows us all six of the LLMs’ “thinking” execution times, we see that Gemini was the fastest overall LLM to produce quantum operations, followed by Claude, WolframLLM, OpenAI, Gemma, and DeepSeek. Even if we account for ServiceConnect averages (which themselves had an overall minimal effect on overall total execution time, as shown in Table 3), this still does not change Gemini’s clear headway (considering Gemini’s 2.67 average execution time minus its 0.00899 ServiceConnect average time—which itself is included in the execution time—this yields 2.66101). Performing our test of significance of average execution times and ranks, we also see that Gemini performed the fastest overall, evident in Table 2.
However, based on the low success rate of the six LLMs, as shown in Figure 19, filtering of LLM output remains a key consideration to ensure executable code. We also noticed that because of the lack of #START and #END comment termination, Gemma suffered high levels of failure. Compilers expected a well-defined beginning and end to a program, which consequently brought down the overall success rate average of all of the LLMs tested. This is reflected well in Table 5. Based on programs that did terminate correctly, correct solutions were seen in prompts such as OpenAI Prompt-2. However, because of the amount of work required to filter and terminate a program correctly, it is our impression that the accuracy rate without factoring in these elements is likely very low compared to the expected results. Having said that, we provide the full results of all prompts for readers; see the Data Availability Statement below located in the Conclusion section.
Another important note that surprised us was that many of the LLM programmatic results relied upon the Qiskit framework, as opposed to others (all of this is shown in Table 4. While we cannot be (or perhaps better put, are not) allowed to see the “black boxes” of LLMs, these results suggest that the LLM training data may come from the same sources and therefore be biased toward certain quantum operations. A possible cause for this is simply that IBM Qiskit is that much more ubiquitous today in the open-source literature versus other sources, and henceforth, in the training data for LLMs. This contrast is stark when looking at Table 4. For instance, 79.3% of quantum operation prompt responses employed Qiskit, while none used Cirq across all six LLMs.
These are significant findings, as they demonstrate that current public LLMs are relatively fast, likely employ similar datasets, and can achieve positive success rates in producing functional quantum operations (if given the appropriate filtering). But how does this impact quantum gate synthesis in terms of the third key factor introduced earlier—interoperability, alongside reliability and scalability? We anticipate that as LLMs continue to improve, their applications in designing the quantum circuits for quantum computers of the future will expand accordingly.
Future research should focus on tracking the progression of gate synthesis performance in current and upcoming public LLMs, as well as analyzing historical improvements from earlier models. Crucially, the filtering capability of public LLMs should be evaluated further to see if they evolve at not just producing fast code, but by default, clean, filtered, and formatted code. In essence, we ask, will future public LLMs assess prompts and programs as requiring differently formatted output? Yet another exploration could investigate the accuracy of how certain quantum problems challenge or even thwart public LLMs (such as Grover Search problems versus Bell State problems). Also, future research could perform an inside look at the black box of public LLMs and how they create quantum solutions. It would be a limit of the imagination to list all the possibilities here; however, we can express this one thought for certain: the data presented here today suggests that publicly available LLMs employed for quantum gate synthesis remain an exciting avenue to watch!

9. Conclusions

We present the first benchmarking study comparing popular and publicly available Large Language Models tasked with creating quantum gate designs. The Wolfram Mathematica framework was used to interface with the six AI LLMs, including Google Gemini 2.0 Flash, Anthropic Claude 3 Haiku, WolframLLM Notebook Assistant For Mathematica V14.3.0.0, OpenAI ChatGPT Omni 4 Mini, Google Gemma 3 4b 1t, and DeepSeek Chat V3. Our novel study found the following:
  • Gemini 2.0 Flash is overall the fastest AI LLM of the models tested in producing quantum gate designs, taking on average 2.66101 s, considering the “thinking” execution time and ServiceConnect network latencies.
  • Across all six LLMs, roughly four out of ten generated quantum programs which compiled successfully (40.8% success rate).
  • Quantum operations averaged between 21 and 45 Lines of Code (omitting nonsensical outliers).
  • On average, DeepSeek produced the shortest code, averaging 21.6 lines.
These findings highlight a promising horizon where publicly available Large Language Models can become fast collaborators with quantum computers, enabling rapid quantum gate synthesis and paving the way for greater interoperability between two remarkable and cutting-edge technologies.

Author Contributions

Conceptualization, D.C.C.; methodology, D.C.C.; software, D.C.C.; validation, Z.J.K.; formal analysis, D.C.C.; investigation, D.C.C.; resources, D.C.C.; data curation, D.C.C.; writing—original draft preparation, D.C.C. and Z.J.K.; writing—review and editing, D.C.C. and Z.J.K.; visualization, D.C.C.; supervision, Z.J.K.; project administration, Z.J.K.; funding acquisition, D.C.C. and Z.J.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

In this section, we provide details regarding where data supporting our results can be found. Readers can access the full results from each LLM (raw data) on a public DukeBox repository: https://duke.box.com/v/pushing-the-limits-of-llms (accessed on 12 January 2026). These are the comprehensive results that were generated by Google Gemini 2.0 Flash, Anthropic Claude 3 Haiku, WolframLLM Notebook Assistant For Mathematica V14.3.0.0, OpenAI ChatGPT Omni 4 Mini, Google Gemma 3 4b 1t, and DeepSeek Chat V3 during testing.

Acknowledgments

During the preparation of this manuscript/study, the author(s) employed Google Gemini 2.0 Flash, Anthropic Claude 3 Haiku, WolframLLM Notebook Assistant For Mathematica V14.3.0.0, OpenAI ChatGPT Omni 4 Mini, Google Gemma 3 4b 1t, and DeepSeek Chat V3 for the purposes of performing benchmarking of LLMs in generating quantum operations. The authors have reviewed and edited the output and take full responsibility for the content of this publication. Moreover, we acknowledge the academic editor and three anonymous reviewers for their careful reading of our manuscript and for their constructive and insightful critique that allowed us to significantly improve the manuscript.

Conflicts of Interest

The authors declare no conflicts of interest. Furthermore, no external funders had a role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Appendix A

Herein are tables pertaining to the experiments performed.
Table A1. LLM prompt errors and descriptions.
Table A1. LLM prompt errors and descriptions.
LLMPrompt FileError Description
DeepSeekPrompt13_Output.txt‘Classical bit index 0 is out-of-range.’
DeepSeekPrompt18_Output.txtname ‘np’ is not defined
GeminiPrompt9_Output.txtinvalid syntax (<string>, line 1)
GeminiPrompt22_Output.txt‘Index 1 out of range for size 1.’
OpenAIPrompt3_Output.txt‘InstructionSet’ object has no attribute ‘num_…’
OpenAIPrompt15_Output.txt‘duplicate qubit arguments’
WolframLLMPrompt13_Output.txt‘QasmQobj’ object has no attribute ‘name’
WolframLLMPrompt20_Output.txt‘duplicate qubit arguments’
Table A2. LLM prompt errors and descriptions.
Table A2. LLM prompt errors and descriptions.
LLMPrompt FileError Description
DeepSeekPrompt13_Output.txt‘Classical bit index 0 is out-of-range.’
DeepSeekPrompt18_Output.txtname ‘np’ is not defined
GeminiPrompt9_Output.txtinvalid syntax (<string>, line 1)
GeminiPrompt22_Output.txt‘Index 1 out of range for size 1.’
OpenAIPrompt3_Output.txt‘InstructionSet’ object has no attribute ‘num_…’
OpenAIPrompt15_Output.txt‘duplicate qubit arguments’
WolframLLMPrompt13_Output.txt‘QasmQobj’ object has no attribute ‘name’
WolframLLMPrompt20_Output.txt‘duplicate qubit arguments’
Table A3. LLM prompt errors and descriptions.
Table A3. LLM prompt errors and descriptions.
LLMPrompt FileError Description
GemmaPrompt9_Output.txt‘invalid syntax (<string>, line 1)’
GemmaPrompt22_Output.txt‘Index 1 out of range for size 1.’
ClaudePrompt1_Output.txt‘QuantumCircuit’ object has no attribute ‘i’
ClaudePrompt15_Output.txt‘cannot import name ‘Aer’ from ‘qiskit’ (/home/…’
ClaudePrompt11_Output.txt‘cannot import name ‘Aer’ from ‘qiskit’ (/home/…’
ClaudePrompt22_Output.txt‘cannot import name ‘execute’ from ‘qiskit’ (/h…’
ClaudePrompt13_Output.txt‘cannot import name ‘Aer’ from ‘qiskit’ (/home/…’
ClaudePrompt16_Output.txt‘cannot import name ‘Aer’ from ‘qiskit’ (/home/…’
Table A4. LLM prompt errors and descriptions.
Table A4. LLM prompt errors and descriptions.
LLMPrompt FileError Description
ClaudePrompt20_Output.txt‘cannot import name ‘Aer’ from ‘qiskit’ (/home/…’
GemmaPrompt24_Output.txt‘cannot import name ‘execute’ from ‘qiskit’ (/h…’
ClaudePrompt19_Output.txt‘cannot import name ‘Aer’ from ‘qiskit’ (/home/…’
Table A5. Quantum prompts table part 1 (Prompts 1–5).
Table A5. Quantum prompts table part 1 (Prompts 1–5).
#ConceptPromptGoalExpected Output
1IdentityWrite code that builds a quantum circuit performing the identity operation. The code must begin with # START and end with # END. Return only executable code.No change in stateEmpty or canceling gates
2Pauli XUsing only Hadamard and Z gates, write code that implements an X gate. The code must begin with # START and end with # END. Output the circuit.Basis flipH → Z → H
3Pauli YWrite code that constructs a Pauli-Y gate using only X and Z gates. The code must begin with # START and end with # END. Output only the quantum code.Phase + bit flipiXZ form
4Pauli ZWrite code that expresses the Z gate using a sequence of T and T gates. The code must begin with # START and end with # END. Return only executable code.Construct Z from phase gatesT; T; T; T; or similar
5HadamardConstruct a Hadamard gate from rotation gates using code. The code must begin with # START and end with # END. Output only executable code.X-basis projectionRx/Rz decomposition
Table A6. Quantum prompts table part 2 (Prompts 6–10).
Table A6. Quantum prompts table part 2 (Prompts 6–10).
#ConceptPromptGoalExpected Output
6CNOT decompositionWrite code that builds a CNOT gate using only CZ and Hadamard gates. The code must begin with # START and end with # END. Return the working circuit.Functional CNOTH; CZ; H
7SWAPWrite a quantum circuit that swaps two qubits without using a SWAP gate. The code must begin with # START and end with # END. Output only executable code.Qubit exchange3 CNOTs
8Toffoli (CCNOT)Decompose the Toffoli gate using only H, T, and CNOT gates. The code must begin with # START and end with # END. Write executable code.Control-control NOTStandard decomposition
9Fredkin (CSWAP)Construct a Fredkin (CSWAP) gate using a Toffoli gate or other gates. The code must begin with # START and end with # END. Output only the code.Controlled swapToffoli-based or ancilla-based
10Bell stateWrite code that prepares a Bell state between two qubits. The code must begin with # START and end with # END. Output the executable circuit only.Create entanglementH; CNOT
Table A7. Quantum prompts table part 3 (Prompts 11–15).
Table A7. Quantum prompts table part 3 (Prompts 11–15).
#ConceptPromptGoalExpected Output
11Equal superpositionCreate a 3-qubit quantum circuit that produces a uniform superposition. The code must begin with # START and end with # END. Return only code.8-state | ψ
12GHZ stateBuild a GHZ state circuit for 3 qubits using H and CNOT gates. The code must begin with # START and end with # END. Output only code.Multi-qubit entanglementH + CNOT + CNOT
13W stateWrite a circuit that prepares a W state using any method. The code must begin with # START and end with # END. Output only the code.3-qubit, one-hot entanglementControlled superposition
14Deutsch (no CNOT)Write code that implements Deutsch’s algorithm without using the CNOT gate. The code must begin with # START and end with # END. Output executable code only.Functional test of f(x)H; CZ; H; or Oracle variant
15Bernstein-VaziraniConstruct the Bernstein–Vazirani algorithm in code for the string s = 101. The code must begin with # START and end with # END. Return only the quantum circuit.Reveal secret stringHs + Oracle + H
Table A8. Quantum prompts table part 4 (Prompts 16–20).
Table A8. Quantum prompts table part 4 (Prompts 16–20).
#ConceptPromptGoalExpected Output
16Grover’s 1-stepWrite code for Grover’s algorithm on 2 qubits with a single marked item. The code must begin with # START and end with # END. Output executable code only.Amplify marked amplitudeOracle + diffuser
17Simon’s algorithmImplement Simon’s algorithm for a 2-bit function in executable code. The code must begin with # START and end with # END. Return only the quantum circuit.Detect hidden XOR patternRegister logic
18Quantum Fourier TransformWrite a 3-qubit quantum Fourier transform circuit in code. The code must begin with # START and end with # END. Return only the code.Phase encodingSwap + Hadamard + CP gates
19Logical AND (measured)Construct a quantum circuit that behaves like a logical AND gate via measurement. The code must begin with # START and end with # END. Output only the code.Output = 1 if both inputs = 1CCNOT or entangled logic
20Logical OR (measured)Build a circuit that behaves like a logical OR gate using quantum measurement. The code must begin with # START and end with # END. Return executable code.Output = 1 if any input = 1Toffoli + ancilla or phase
Table A9. Quantum prompts table part 5 (Prompts 21–25).
Table A9. Quantum prompts table part 5 (Prompts 21–25).
#ConceptPromptGoalExpected Output
21Entangle then swapEntangle two qubits, then swap them. Write the code that does both. The code must begin with # START and end with # END. Output only code.Confirm state transferBell + SWAP
22Quantum teleportationWrite a circuit that implements quantum teleportation for a single-qubit state. The code must begin with # START and end with # END. Output executable code.Reconstruct qubit on receiverBell + CX + classical correction
23Controlled-Z from CNOTConstruct a Controlled-Z gate using only CNOT and H gates. The code must begin with # START and end with # END. Write the code.Control-Z logicH; CNOT; H
24XOR by measurementWrite code that encodes XOR into a quantum circuit and decodes by measurement. The code must begin with # START and end with # END. Output only the circuit.0 if same, 1 if differentCNOT or parity circuit
25Random entangled pairPrepare a random Bell pair from an ancilla and Hadamard gates. The code must begin with # START and end with # END. Return only the executable circuit.Bell state variationRandomized entangler

References

  1. Dupuis, N.; Buratti, L.; Vishwakarma, S.; Forrat, A.V.; Kremer, D.; Faro, I.; Puri, R.; Cruz-Benito, J. Qiskit Code Assistant: Training LLMs for generating Quantum Computing Code. In Proceedings of the 2024 IEEE LLM Aided Design Workshop (LAD), San Jose, CA, USA, 28–29 June 2024; pp. 1–4. [Google Scholar] [CrossRef]
  2. Preskill, J. Quantum Computing in the NISQ era and beyond. Quantum 2018, 2, 79. [Google Scholar] [CrossRef]
  3. Brown, K. Quantum Error Correction Now! In Proceedings of the Invited lecture at JST Moonshot Symposium, Japan Science and Technology Agency (JST), Tokyo, Japan, 18 July 2023. [Google Scholar]
  4. McEwen, M.; Bacon, D.; Gidney, C. Relaxing Hardware Requirements for Surface Code Circuits using Time-dynamics. Quantum 2023, 7, 1172. [Google Scholar] [CrossRef]
  5. Fahimniya, A.; Dehghani, H.; Bharti, K.; Mathew, S.; Kollár, A.J.; Gorshkov, A.V.; Gullans, M.J. Fault-tolerant hyperbolic Floquet quantum error correcting codes. Quantum 2025, 9, 1849. [Google Scholar] [CrossRef]
  6. McIntyre, D.H. Quantum Mechanics; Cambridge University Press: Cambridge, UK, 2022. [Google Scholar]
  7. Gross, D.; Flammia, S.T.; Eisert, J. Most Quantum States Are Too Entangled To Be Useful As Computational Resources. Phys. Rev. Lett. 2009, 102, 190501. [Google Scholar] [CrossRef] [PubMed]
  8. Arunachalam, S.; De Wolf, R. Guest column: A survey of quantum learning theory. ACM Sigact News 2017, 48, 41–67. [Google Scholar] [CrossRef]
  9. Ladd, T.D.; Jelezko, F.; Laflamme, R.; Nakamura, Y.; Monroe, C.; O’Brien, J.L. Quantum computers. Nature 2010, 464, 45–53. [Google Scholar] [CrossRef]
  10. O’Brien, J.L. Optical quantum computing. Science 2007, 318, 1567–1570. [Google Scholar] [CrossRef]
  11. Belenchia, A.; Wald, R.M.; Giacomini, F.; Castro-Ruiz, E.; Brukner, C.; Aspelmeyer, M. Information content of the gravitational field of a quantum superposition. Int. J. Mod. Phys. D 2019, 28, 1943001. [Google Scholar] [CrossRef]
  12. Wasielewski, M.R.; Forbes, M.D.; Frank, N.L.; Kowalski, K.; Scholes, G.D.; Yuen-Zhou, J.; Baldo, M.A.; Freedman, D.E.; Goldsmith, R.H.; Goodson, T., III; et al. Exploiting chemistry and molecular systems for quantum information science. Nat. Rev. Chem. 2020, 4, 490–504. [Google Scholar] [CrossRef]
  13. Moreno-Pineda, E.; Wernsdorfer, W. Measuring molecular magnets for quantum technologies. Nat. Rev. Phys. 2021, 3, 645–659. [Google Scholar] [CrossRef]
  14. Toninelli, C.; Gerhardt, I.; Clark, A.; Reserbat-Plantey, A.; Götzinger, S.; Ristanović, Z.; Orrit, M. Single organic molecules for photonic quantum technologies. Nat. Mater. 2021, 20, 1615–1628. [Google Scholar] [CrossRef]
  15. Harvey, S.; Wasielewski, M. Photogenerated spin-correlated radical pairs: From photosynthetic energy transduction to quantum information science. J. Am. Chem. Soc. 2021, 143, 15508–15529. [Google Scholar] [CrossRef]
  16. Verma, S.; Mitra, A.; Wang, Q.; D’Cunha, R.; Jangid, B.; Hennefarth, M.; Agarawal, V.; Otis, L.; Haldar, S.; Hermes, M.; et al. Multireference embedding and fragmentation methods for classical and quantum computers: From model systems to realistic applications. Chem. Rev. 2025, in press. [Google Scholar] [CrossRef] [PubMed]
  17. De Bernardis, D.; Levy-Falk, H.; Fanella, E.; Duquennoy, R.; Digiorgio, V.; Scalari, G.; Colautti, M.; Toninelli, C. Hybrid interfaces at the single quantum level in fluorescent molecules. Quantum Sci. Technol. 2025, 10, 045001. [Google Scholar] [CrossRef]
  18. Alexeev, Y.; Batista, V.; Bauman, N.; Bertels, L.; Claudino, D.; Dutta, R.; Gagliardi, L.; Godwin, S.; Govind, N.; Head-Gordon, M.; et al. A perspective on quantum computing applications in quantum chemistry using 25–100 logical qubits. J. Chem. Theory Comput. 2025, 21, 11335–11357. [Google Scholar] [CrossRef] [PubMed]
  19. Morrillo, W.; Cumming, H.; Mattioni, A.; Staab, J.; Chilton, N. Ab initio design of molecular qubits with electric field control. J. Am. Chem. Soc. 2024, 146, 25841–25851. [Google Scholar] [CrossRef]
  20. Hui, X.; Zhang, Y.; Xiong, Q.; Wu, Z.; Gao, S.; Zhou, S.; Jiang, S. A 3D-assembled endohedral nitrogen fullerene in a metal–organic framework toward spin qubit and quantum sensors. Inorg. Chem. Front. 2024, 11, 7340–7345. [Google Scholar] [CrossRef]
  21. Mao, H.; Pazera, G.; Young, R.; Krzyaniak, M.; Wasielewski, M. Quantum gate operations on a spectrally addressable photogenerated molecular electron spin-qubit pair. J. Am. Chem. Soc. 2023, 145, 6585–6593. [Google Scholar] [CrossRef]
  22. Chizzini, M.; Crippa, L.; Zaccardi, L.; Macaluso, E.; Carretta, S.; Chiesa, A.; Santini, P. Quantum error correction with molecular spin qudits. Phys. Chem. Chem. Phys. 2022, 24, 20030–20039. [Google Scholar] [CrossRef]
  23. Scholes, G. A molecular perspective on quantum information. Proc. R. Soc. A 2023, 479, 20230599. [Google Scholar] [CrossRef]
  24. Chiesa, A.; Petiziol, F.; Chizzini, M.; Santini, P.; Carretta, S. Theoretical design of optimal molecular qudits for quantum error correction. J. Phys. Chem. Lett. 2022, 13, 6468–6474. [Google Scholar] [CrossRef] [PubMed]
  25. Bahrami, M.; Shafiee, A.; Bassi, A. Decoherence effects on superpositions of chiral states in a chiral molecule. Phys. Chem. Chem. Phys. 2012, 14, 9214–9218. [Google Scholar] [CrossRef]
  26. Tóth, G.; Apellaniz, I. Quantum metrology from a quantum information science perspective. J. Phys. A Math. Theor. 2014, 47, 424006. [Google Scholar] [CrossRef]
  27. Nayak, C.; Simon, S.H.; Stern, A.; Freedman, M.; Sarma, S.D. Non-Abelian anyons and topological quantum computation. Rev. Mod. Phys. 2008, 80, 1083–1159. [Google Scholar] [CrossRef]
  28. Bruzewicz, C.D.; Chiaverini, J.; McConnell, R.; Sage, J.M. Trapped-ion quantum computing: Progress and challenges. Appl. Phys. Rev. 2019, 6, 021314. [Google Scholar] [CrossRef]
  29. Reiher, M.; Wiebe, N.; Svore, K.M.; Wecker, D.; Troyer, M. Elucidating reaction mechanisms on quantum computers. Proc. Natl. Acad. Sci. USA 2017, 114, 7555–7560. [Google Scholar] [CrossRef]
  30. Raussendorf, R.; Briegel, H.J. A one-way quantum computer. Phys. Rev. Lett. 2001, 86, 5188. [Google Scholar] [CrossRef]
  31. Bourassa, J.E.; Alexander, R.N.; Vasmer, M.; Patil, A.; Tzitrin, I.; Matsuura, T.; Su, D.; Baragiola, B.Q.; Guha, S.; Dauphinais, G.; et al. Blueprint for a scalable photonic fault-tolerant quantum computer. Quantum 2021, 5, 392. [Google Scholar] [CrossRef]
  32. Steiger, D.S.; Häner, T.; Troyer, M. ProjectQ: An open source software framework for quantum computing. Quantum 2018, 2, 49. [Google Scholar] [CrossRef]
  33. Lohani, S.; Lukens, J.M.; Glasser, R.T.; Searles, T.A.; Kirby, B.T. Data-centric machine learning in quantum information science. Mach. Learn. Sci. Technol. 2022, 3, 04LT01. [Google Scholar] [CrossRef]
  34. Kitaev, A.Y. Fault-tolerant quantum computation by anyons. Ann. Phys. 2003, 303, 2–30. [Google Scholar] [CrossRef]
  35. Long, G. A commentary of “Prolonging the lifetime of logic qubits by Bosonic error-correcting code—realizing the break-even point of quantum error correction”: Top 10 Scientific Advances of 2023, China. Fundam. Res. 2024, 4, 706–707. [Google Scholar] [CrossRef] [PubMed]
  36. Kaldenbach, T.; Heller, M.; Alber, G.; Stojanovi’c, V. Digital quantum simulation of scalar Yukawa coupling. Quantum Rep. 2024, 6, 366–400. [Google Scholar] [CrossRef]
  37. Duchnowski, A.; Pavlick, E.; Koller, A. A Knapsack by Any Other Name: Presentation impacts LLM performance on NP-hard problems. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2025, Suzhou, China, 4–9 November 2025; pp. 6628–6651. [Google Scholar]
  38. Bermejo, V.; Gago, A.; G’alvez, R.; Harari, N. LLMs outperform outsourced human coders on complex textual analysis. Sci. Rep. 2025, 15, 40122. [Google Scholar] [CrossRef] [PubMed]
  39. Sogabe, T.; Kimura, T.; Chen, C.C.; Shiba, K.; Kasahara, N.; Sogabe, M.; Sakamoto, K. Model-free deep recurrent Q-network reinforcement learning for quantum circuit architectures design. Quantum Rep. 2022, 4, 380–389. [Google Scholar] [CrossRef]
  40. Karuppasamy, K.; Puram, V.; Johnson, S.; Thomas, J. A comprehensive review of quantum circuit optimization: Current trends and future directions. Quantum Rep. 2025, 7, 2. [Google Scholar] [CrossRef]
  41. Lappala, A. The next revolution in computational simulations: Harnessing AI and quantum computing in molecular dynamics. Curr. Opin. Struct. Biol. 2024, 89, 102919. [Google Scholar] [CrossRef]
  42. Wu, G.; Paliath-Pathiyal, H.; Khan, O.; Wang, M. Comparative Analysis of LLMs in Dry Eye Syndrome Healthcare Information. Diagnostics 2025, 15, 1913. [Google Scholar] [CrossRef]
  43. Leutz-Schmidt, P.; Palm, V.; Mathy, R.; Gr"ozinger, M.; Kauczor, H.U.; Jang, H.; Sedaghat, S. Performance of Large Language Models ChatGPT and Gemini on Workplace Management Questions in Radiology. Diagnostics 2025, 15, 497. [Google Scholar] [CrossRef]
  44. Chatzopoulos, G.; Koidou, V.; Tsalikis, L.; Kaklamanos, E. Evaluation of Large Language Model Performance in Answering Clinical Questions on Periodontal Furcation Defect Management. Dent. J. 2025, 13, 271. [Google Scholar] [CrossRef]
  45. Vishwakarma, S.; Harkins, F.; Golecha, S.; Bajpe, V.S.; Dupuis, N.; Buratti, L.; Kremer, D.; Faro, I.; Puri, R.; Cruz-Benito, J. Qiskit HumanEval: An Evaluation Benchmark for Quantum Code Generative Models. In Proceedings of the 2024 IEEE International Conference on Quantum Computing and Engineering (QCE), Montréal, QC, Canada, 15–20 September 2024; pp. 1169–1176. [Google Scholar]
  46. Cerezo, M.; Verdon, G.; Huang, H.Y.; Cincio, L.; Coles, P.J. Challenges and opportunities in quantum machine learning. Nat. Comput. Sci. 2022, 2, 567–576. [Google Scholar] [CrossRef] [PubMed]
  47. Sabapathy, K.K.; Qi, H.; Izaac, J.; Weedbrook, C. Production of photonic universal quantum gates enhanced by machine learning. Phys. Rev. A 2019, 100, 012326. [Google Scholar] [CrossRef]
  48. Marcucci, G.; Pierangeli, D.; Pinkse, P.W.; Malik, M.; Conti, C. Programming multi-level quantum gates in disordered computing reservoirs via machine learning. Opt. Express 2020, 28, 14018–14027. [Google Scholar] [CrossRef] [PubMed]
  49. Pogosyan, E.A.; Gazazyan, E.A. Programmable quantum gate operations using qutrit quantum dots. Opt. Mem. Neural Networks 2023, 32, S396–S401. [Google Scholar] [CrossRef]
  50. Panchi, L.; Shiyong, L. Learning algorithm and application of quantum BP neural networks based on universal quantum gates. J. Syst. Eng. Electron. 2008, 19, 167–174. [Google Scholar] [CrossRef]
  51. Wang, Q.; Liu, J.; Lyu, D.; Wang, J. Ultrahigh-fidelity spatial mode quantum gates in high-dimensional space by diffractive deep neural networks. Light. Sci. Appl. 2024, 13, 10. [Google Scholar] [CrossRef]
  52. Shafee, F. Neural networks with quantum gated nodes. Eng. Appl. Artif. Intell. 2007, 20, 429–437. [Google Scholar] [CrossRef]
  53. Güngördü, U.; Kestner, J.P. Robust quantum gates using smooth pulses and physics-informed neural networks. Phys. Rev. Res. 2022, 4, 023155. [Google Scholar] [CrossRef]
  54. Nielsen, M.A.; Chuang, I.L. Programmable quantum gate arrays. Phys. Rev. Lett. 1997, 79, 321. [Google Scholar] [CrossRef]
  55. Kosut, R.L.; Grace, M.D.; Brif, C. Robust control of quantum gates via sequential convex programming. Phys. Rev. A 2013, 88, 052326. [Google Scholar] [CrossRef]
  56. Jochym-O’Connor, T.; Laflamme, R. Using concatenated quantum codes for universal fault-tolerant quantum gates. Phys. Rev. Lett. 2014, 112, 010505. [Google Scholar] [CrossRef] [PubMed]
  57. Paz, J.P.; Roncaglia, A. Quantum gate arrays can be programmed to evaluate the expectation value of any operator. Phys. Rev. A 2003, 68, 052316. [Google Scholar] [CrossRef]
  58. Webster, P.; Bartlett, S.D. Fault-tolerant quantum gates with defects in topological stabilizer codes. Phys. Rev. A 2020, 102, 022403. [Google Scholar] [CrossRef]
  59. Mičuda, M.; Ježek, M.; Dušek, M.; Fiurášek, J. Experimental realization of a programmable quantum gate. Phys. Rev. A 2008, 78, 062311. [Google Scholar] [CrossRef]
  60. Devra, A.; Prabhu, P.; Singh, H.; Arvind; Dorai, K. Efficient experimental design of high-fidelity three-qubit quantum gates via genetic programming. Quantum Inf. Process. 2018, 17, 67. [Google Scholar] [CrossRef]
  61. Winter, A. Scalable programmable quantum gates and a new aspect of the additivity problem for the classical capacity of quantum channels. J. Math. Phys. 2002, 43, 4341–4352. [Google Scholar] [CrossRef]
  62. Wang, D.S. Choi states, symmetry-based quantum gate teleportation, and stored-program quantum computing. Phys. Rev. A 2020, 101, 052311. [Google Scholar] [CrossRef]
  63. Aguayo-Alvarado, A.L.; Domínguez-Serna, F.A.; Castro-Simanca, F.; De La Cruz, W.; Garay-Palmett, K. Programmable color qubit quantum gates. J. Opt. Soc. Am. B 2025, 42, 563–572. [Google Scholar] [CrossRef]
  64. Fan, H.; Du, J.; Wu, Z.; He, R. Operator-orderization programme for quantum gates of continuum state. Mod. Phys. Lett. A 2024, 39, 2450176. [Google Scholar] [CrossRef]
  65. Wang, Y.; Xu, Y.; Liu, Z.W. Tessellation codes: Encoded quantum gates by geometric rotation. Phys. Rev. Lett. 2025, 135, 140602. [Google Scholar] [CrossRef]
  66. Wolfram Research, Inc. Wolfram Quantum Computation Framework. 2025. Available online: https://www.wolfram.com/quantum-computation-framework/ (accessed on 24 December 2025).
  67. Wolfram Research, Inc. Wolfram Machine Learning Core Areas. 2025. Available online: https://www.wolfram.com/language/core-areas/machine-learning/ (accessed on 24 December 2025).
  68. Wolfram Research, Inc. The Wolfram Language. 2025. Available online: https://www.wolfram.com/language/ (accessed on 24 December 2025).
  69. Asfaw, A.; Bäumer, E.; Bronn, N.; Kandala, A.; Mezzacapo, A.; Minev, Z.K.; Wootton, J. Introduction to Quantum Computing and Quantum Hardware. 2020. Available online: https://www.youtube.com/playlist?list=PLOFEBzvs-VvrXTMy5Y2IqmSaUjfnhvBHR (accessed on 20 October 2025).
  70. Javadi-Abhari, A.; Treinish, M.; Krsulich, K.; Wood, C.J.; Lishman, J.; Gacon, J.; Martiel, S.; Nation, P.D.; Bishop, L.S.; Cross, A.W.; et al. Quantum computing with Qiskit. arXiv 2024, arXiv:2405.08810. [Google Scholar] [CrossRef]
  71. Developers, C. Cirq; Zenodo: Geneva, Switzerland, 2025. [Google Scholar] [CrossRef]
Figure 3. Testbed platform.
Figure 3. Testbed platform.
Quantumrep 08 00007 g003
Figure 4. Gemini AI execution times.
Figure 4. Gemini AI execution times.
Quantumrep 08 00007 g004
Figure 5. WolframLLM AI execution times.
Figure 5. WolframLLM AI execution times.
Quantumrep 08 00007 g005
Figure 6. OpenAI execution times.
Figure 6. OpenAI execution times.
Quantumrep 08 00007 g006
Figure 7. DeepSeek AI execution times.
Figure 7. DeepSeek AI execution times.
Quantumrep 08 00007 g007
Figure 8. Gemma AI execution times.
Figure 8. Gemma AI execution times.
Quantumrep 08 00007 g008
Figure 9. Claude AI execution times.
Figure 9. Claude AI execution times.
Quantumrep 08 00007 g009
Figure 10. DeepSeek ServiceConnect moving averages.
Figure 10. DeepSeek ServiceConnect moving averages.
Quantumrep 08 00007 g010
Figure 11. Gemini ServiceConnect moving averages.
Figure 11. Gemini ServiceConnect moving averages.
Quantumrep 08 00007 g011
Figure 12. OpenAI ServiceConnect moving averages.
Figure 12. OpenAI ServiceConnect moving averages.
Quantumrep 08 00007 g012
Figure 13. Gemma ServiceConnect moving averages.
Figure 13. Gemma ServiceConnect moving averages.
Quantumrep 08 00007 g013
Figure 14. Claude ServiceConnect moving averages.
Figure 14. Claude ServiceConnect moving averages.
Quantumrep 08 00007 g014
Figure 15. Five-way five-point moving average comparison.
Figure 15. Five-way five-point moving average comparison.
Quantumrep 08 00007 g015
Figure 16. Average LoC six-way comparison.
Figure 16. Average LoC six-way comparison.
Quantumrep 08 00007 g016
Figure 17. OpenAI Prompt-2 LLM prompt output.
Figure 17. OpenAI Prompt-2 LLM prompt output.
Quantumrep 08 00007 g017
Figure 18. OpenAI Prompt-2 LLM in Python output.
Figure 18. OpenAI Prompt-2 LLM in Python output.
Quantumrep 08 00007 g018
Figure 19. Success rate of all Python prompts for each LLM.
Figure 19. Success rate of all Python prompts for each LLM.
Quantumrep 08 00007 g019
Table 1. Average LLM execution time per model (rounded to two decimal places, in seconds).
Table 1. Average LLM execution time per model (rounded to two decimal places, in seconds).
LLMAverage Execution Time (s)
Google Gemini 2.0 Flash2.67
Anthropic Claude 3 Haiku2.72
WolframLLM Notebook Assistant For Mathematica V14.3.0.03.48
Google Gemma 3 4b 1t4.55
OpenAI ChatGPT Omni 4 Mini5.22
DeepSeek Chat V312.23
Table 2. Average execution times and rankings for each LLM (in seconds).
Table 2. Average execution times and rankings for each LLM (in seconds).
ModelAvg. Time (s)Rank (1 = Fastest)
Google Gemini 2.0 Flash2.671
Anthropic Claude 3 Haiku2.722
WolframLLM3.483
Google Gemma 3 4b 1t4.554
OpenAI ChatGPT Omni 4 Mini5.225
DeepSeek Chat V312.236
Table 3. Average ServiceConnect times for each LLM (rounded to two decimal places, in milliseconds).
Table 3. Average ServiceConnect times for each LLM (rounded to two decimal places, in milliseconds).
LLMAverage Service Connect Time (milliseconds)
DeepSeek Chat V38.73
Google Gemini 2.0 Flash8.99
OpenAI ChatGPT Omni 4 Mini10.93
Anthropic Claude 3 Haiku74.12
Google Gemma 3 4b 1t76.10
WolframLLM Notebook Assistant For Mathematica V14.3.0.0UNKNOWN
Table 4. Quantum framework and language occurrences by LLM with total counts and proportional percentages.
Table 4. Quantum framework and language occurrences by LLM with total counts and proportional percentages.
LLMQiskitCirqOpenQASMOtherTotal
DeepSeek Chat V32201225
Google Gemini 2.0 Flash2301125
OpenAI ChatGPT Omni 4 Mini2500025
Anthropic Claude 3 Haiku2200325
Google Gemma 3 4b 1t4002125
WolframLLM Notebook Assistant For Mathematica V14.3.0.02300225
Totals1190229150
Percent Overall (%)79.30.01.319.3100.0
Table 5. Lines of Code (LoC) per prompt across all LLMs, with average LoC per model.
Table 5. Lines of Code (LoC) per prompt across all LLMs, with average LoC per model.
PromptClaudeWolframLLMDeepSeekGeminiGemmaOpenAI
1111010544 *11
2312615116
35135913 *12
4171311222022
51325295427 *25
6203223345623
730127735 *20
84530561276 *26
92022311627 *18
10131311637 *14
112010962313
12131512154093 **14
132839231624 *38
145650515744 *47
15332428394541
162939393244 *31
174640385335 *35
183232142530 *22
193536322737 *34
203934375134 *45
21142320202525
22433631715037
23261716174918
243333201348 *33
25161414194093 **19
Average24.925.921.626.3341.9 **25.7
* Files that do not have #START and #END comment termination are estimated. ** Gemma averages are heavily skewed by two very large outliers (both 4093 LoC). This is also reflected in the overall average of the column for Gemma. Without these, Gemma’s typical mean would be around the range of 38–45 LoC.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Closser, D.C.; Kabala, Z.J. Pushing the Limits of Large Language Models in Quantum Operations. Quantum Rep. 2026, 8, 7. https://doi.org/10.3390/quantum8010007

AMA Style

Closser DC, Kabala ZJ. Pushing the Limits of Large Language Models in Quantum Operations. Quantum Reports. 2026; 8(1):7. https://doi.org/10.3390/quantum8010007

Chicago/Turabian Style

Closser, Dayton C., and Zbigniew J. Kabala. 2026. "Pushing the Limits of Large Language Models in Quantum Operations" Quantum Reports 8, no. 1: 7. https://doi.org/10.3390/quantum8010007

APA Style

Closser, D. C., & Kabala, Z. J. (2026). Pushing the Limits of Large Language Models in Quantum Operations. Quantum Reports, 8(1), 7. https://doi.org/10.3390/quantum8010007

Article Metrics

Back to TopTop