Recent paradigm shifts in algorithmic music composition explore the intersection of physical stochastic processes and statistical language modeling. This study introduces the Quantum–LLM Composer, a hybrid generative framework that couples natural-language semantic conditioning with quantum-circuit-derived probability distributions to generate musical sequences. A three-qubit quantum circuit implemented in Qiskit (H, CX, RX, and CRZ gates) produces measurement bitstrings that are mapped modulo-N to defined harmonic scales, while a Large Language Model (GPT-5) interprets user intent into scale, tempo, and instrumentation parameters. Using a corrected, 100-trial-per-system evaluation pipeline with nonparametric significance testing, we show that hardware noise on real IBM Quantum hardware significantly increases Shannon entropy relative to a noiseless simulation of the same circuit (1.864 vs. 1.723 bits; p = 1.5 × 10−7), a pattern we trace to a specific mechanism: the circuit’s exact statevector populates only 4 of 8 possible basis states, and hardware noise measurably leaks probability into the remaining, ideally forbidden states. We further show that the LLM’s semantic output can be coupled directly to the quantum circuit’s own rotation parameters, rather than used only to select instrumentation after the fact, so that the sampled distribution itself is measurably steered by theme (Kruskal–Wallis H = 206.8, p = 1.3 × 10−43 across five themes on the simulator), with the same theme effect and the same noise-elevates-entropy mechanism replicating independently on real quantum hardware. We report these as narrow, falsifiable, and statistically supported findings rather than claims of demonstrated musical superiority over classical pseudo-randomness, and we identify a formal perceptual listening study, an external classical-ML baseline, and a production-parameter (timbre) extension as concrete next steps.
Recent paradigm shifts in algorithmic music composition explore the intersection of physical stochastic processes and statistical language modeling. This study introduces the Quantum–LLM Composer, a hybrid generative framework that couples natural-language semantic conditioning with quantum-circuit-derived probability distributions to generate musical sequences. A three-qubit quantum circuit implemented in Qiskit (H, CX, RX, and CRZ gates) produces measurement bitstrings that are mapped modulo-N to defined harmonic scales, while a Large Language Model (GPT-5) interprets user intent into scale, tempo, and instrumentation parameters. Using a corrected, 100-trial-per-system evaluation pipeline with nonparametric significance testing, we show that hardware noise on real IBM Quantum hardware significantly increases Shannon entropy relative to a noiseless simulation of the same circuit (1.864 vs. 1.723 bits; p = 1.5 × 10−7), a pattern we trace to a specific mechanism: the circuit’s exact statevector populates only 4 of 8 possible basis states, and hardware noise measurably leaks probability into the remaining, ideally forbidden states. We further show that the LLM’s semantic output can be coupled directly to the quantum circuit’s own rotation parameters, rather than used only to select instrumentation after the fact, so that the sampled distribution itself is measurably steered by theme (Kruskal–Wallis H = 206.8, p = 1.3 × 10−43 across five themes on the simulator), with the same theme effect and the same noise-elevates-entropy mechanism replicating independently on real quantum hardware. We report these as narrow, falsifiable, and statistically supported findings rather than claims of demonstrated musical superiority over classical pseudo-randomness, and we identify a formal perceptual listening study, an external classical-ML baseline, and a production-parameter (timbre) extension as concrete next steps.
This paper states a hybrid quantum-classical pipeline that generates melodies directly from natural-language text. This approach extracts a semantic-musical vector from input text - encoding valence, arousal, lexical stress, and syntactic structure - and uses it to condition a parameterized quantum circuit (PQC). The semantic vector programs the initial rotation layer of a 3-qubit variational ansatz, while a classical optimizer (COBYLA) tunes additional parameters against a hybrid cost function that balances harmonic consonance, melodic smoothness, pitch variety, semantic coherence, melodic arch, and tonal resolution. The algorithm was evaluated on a corpus of 3 English text passages spanning four emotional quadrants (positive-calm, positive-energetic, negative-calm, negativeenergetic). Results show that the generated melodies achieve statistically significant differentiation across emotional categories in mode selection, tempo, interval magnitude, and pitch register, while maintaining harmonic consonance scores above 0.75.
Large Language Models (LLMs) generate text through next-token prediction. This process relies on various stochastic sampling methods, particularly Top-p (nucleus) sampling, which allow for creative variability to be added to the samples generated [2]. It is worth noting that the aforementioned variability is mainly attributed to pseudo-random number generators (PRNGs), which are in fact arbitrary and deterministic at the same time. The determinism quality of randomness thus causing a diversity issue in the generated text samples that sometimes imperceptibly but repeatably bias the text quality, eventually leading to the problem of “repetitive generation”. This paper proposes a new rigorous method for presenting the Quantum-Assisted Token Sampling (QATS) approach which entirely replaces the PRNGs-induced classical determinism of the sampling process with the application of true randomness derived from quantum measurement processes. The suggested technique goes further by exploiting the principle of amplitude encoding where the distribution of the top-p token options is mapped onto the quantum state's amplitudes. Following this, a random quantum measurement is made, thereby producing a nondeterministic index that leads to the selected token. The implementation of the proposed QATS method is done using quantum circuit simulators such as Qiskit or Cirq. QATS is evaluated against classical Top-p in metrics that include sequence entropy, Kullback-Leibler (KL) divergence, repetition rates, and n-gram diversity. Simulations on toy probability distributions and small-scale LLM prompts show that QATS achieves7.4%lower KL divergence and improvements in n-gram diversity (Distinct-2: +0.27%, Distinct 3: +0.16%), with negligible latency over-head enhancing token sampling with true randomness sampling. Challenges like scalability and latency are discussed, with future directions toward NISQ hardware integration.
There has been tremendous progress in Artificial Intelligence (AI) for music, in particular for musical composition and access to large databases for commercialisation through the Internet.We are interested in further advancing this field, focusing on composition.In contrast to current 'blackbox' AI methods, we are championing an interpretable compositional outlook on generative music systems.In particular, we are importing methods from the Distributional Compositional Categorical (DisCoCat) modelling framework for Natural Language Processing (NLP), motivated by musical grammars.Quantum computing is a nascent technology, which is very likely to impact the music industry in time to come.Thus, we are pioneering a Quantum Natural Language Processing (QNLP) approach to develop a new generation of intelligent musical systems.This work follows from previous experimental implementations of DisCoCat linguistic models on quantum hardware.In this chapter, we present Quanthoven, the first proof-of-concept ever built, which (a) demonstrates that it is possible to program a quantum computer to learn to classify music that conveys different meanings and (b) illustrates how such a capability might be leveraged to develop a system to compose meaningful pieces of music.After a discussion about our current understanding of music as a communication medium and its relationship to natural language, the chapter focuses on the techniques developed to (a) encode musical compositions as quantum circuits, and (b) design a quantum classifier.The chapter ends with demonstrations of compositions created with the system.
Generative machine learning aims to model probability distributions from sample data. Quantum computers are widely believed to efficiently sample from certain probability distributions that are intractable for classical computers, making quantum circuits promising candidates for generative machine learning. This dissertation investigates quantum generative machine learning models, with a particular focus on Synthetic Data Generation (SDG) and on the Quantum Circuit Born Machine, an algorithm that can be implemented on current quantum hardware. The first part of this dissertation studies SDG algorithms in noiseless simulations. Most of these algorithms rely on an implicit design choice that has not previously been examined: the binary encoding that maps bitstring samples generated by a quantum circuit to real-valued data points. We show that the training performance depends on this choice and analyze the interplay between data structure, circuit ansatz, and encoding. For continuous target distributions, the reflected binary Gray code is particularly effective because it maps similar data points to similar bitstrings and thus preserves the structure of the data. This provides a useful inductive bias that leads, on average, to faster convergence and better synthetic data. We further investigate extensions of SDG algorithms. Contrary to previous findings, we show that quantum models can also learn conditional probability distributions with quality comparable to that of independently trained models. We develop two sample-efficient strategies that enable conditional models to perform classification without additional training. This yields a unified model with both generative and discriminative capabilities. The second part of this dissertation addresses the implementation of such models on real quantum hardware. While current devices can train small-scale models with reasonable resource, larger-scale implementations remain limited by noise. Understanding and modeling this noise is therefore essential for progress. First, we develop a physically motivated noise model for superconducting transmon systems based on Hamiltonian simulation. We show that frequency collisions between energy levels of neighboring transmons can induce crosstalk and may drive the system out of the computational subspace. This model provides a basis for understanding hardware-level error mechanisms and for developing taylored mitigation or correction strategies. Second, we investigate two-qubit error using Long-Sequence Quantum Process Tomography (LS-QPT), assuming well-characterized single-qubit gates. Compared with standard Quantum Process Tomography, LS-QPT reduces the measurement cost by amplifying noise through germ circuits. We show that germ circuits that ideally implement the identity operation amplify a larger subspace of noise processes than other types of germ circuits. We also show that the precision of LS-QPT is fundamentally limited by unlearnable degrees of freedom in the noise model that cannot be amplified. Despite this limitation, the LS-QPT method reduces the total circuit depth required for process tomography by an order of magnitude.
Quantum generative modeling using quantum circuit Born machines (QCBMs) shows promising potential for practical quantum advantage. However, discovering ansätze that are both expressive and hardware-efficient remains a key challenge, particularly on noisy intermediate-scale quantum (NISQ) devices. In this work, we introduce a prompt-based framework that leverages large language models (LLMs) to generate hardwareaware QCBM architectures. Prompts are conditioned on qubit connectivity, gate error rates, and hardware topology, while iterative feedback-including Kullback-Leibler (KL) divergence, circuit depth, and validity-is used to refine the circuits. We evaluate our method on a financial modeling task involving daily changes in Japanese government bond (JGB) interest rates. Our results show that the LLM-generated ansätze are significantly shallower and achieve superior generative performance compared to the standard baseline when executed on real IBM quantum hardware using 12 qubits. These findings demonstrate the practical utility of LLM-driven quantum architecture search and highlight a promising path toward robust, deployable generative models for near-term quantum devices.
Large Language Models (LLMs) are increasingly deployed as quantum coding copilots, assisting researchers by generating complex programs for frameworks such as Qiskit, PennyLane, and OpenQASM. However, accurately evaluating the practical utility of these models remains a significant challenge. Existing benchmarks are highly fragmented, ranging from syntax-centric unit tests to simulator- and hardware-aware metrics, making results difficult to compare across different languages and hardware targets. To address this fragmentation, this paper systematically reviews recent evaluation suites and post-training methodologies for quantum code generation. We distill current evaluation criteria into four practical dimensions: syntax and API validity, semantic and physical correctness, resource and hardware feasibility, and execution-based feedback. Building upon these dimensions, we present a unified taxonomy that maps current benchmarks to emerging model adaptation techniques, specifically retrieval-augmented generation (RAG), fine-tuning, multi-agent workflows, and reinforcement learning (RL). Our analysis highlights a clear shift: moving away from prompt-only baselines and toward agentic workflows driven by quantum-verifiable rewards. This shift directly targets the semantic gap between superficially compilable code and physically executable quantum programs. In addition, we identify key research opportunities-such as standardized semantic metrics and integration with quantum error correction-aimed at fostering a more reproducible, verifiable, and hardware-grounded ecosystem for automated quantum software development.