International Conference on Smart Applications, Communications and Networking (SmartNets)
TextQ-Melody: Semantically-Conditioned Quantum Variational Circuits for Text-to-Melody Generation
Washington Velásquez, Manuel S. Alvarez‐Alvarado
Abstract
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.