A quantum computing algorithm for rhythm generation is presented, which aims to expand and explore quantum computing applications in the arts, particularly in music. The algorithm maps quantum random walk trajectories onto a rhythmspace -- a 2D interface that interpolates rhythmic patterns. The methodology consists of three stages. The first stage involves designing quantum computing algorithms and establishing a mapping between the qubit space and the rhythmspace. To minimize circuit depth, a decomposition of a 2D quantum random walk into two 1D quantum random walks is applied. The second stage focuses on biasing the directionality of quantum random walks by introducing classical potential fields, adjusting the probability distribution of the wave function based on the position gradient within these fields. Four potential fields are implemented: a null potential, a linear field, a Gaussian potential, and a Gaussian potential under inertial dynamics. The third stage addresses the sonification of these paths by generating MIDI drum pattern messages and transmitting them to a Digital Audio Workstation (DAW). This work builds upon existing literature that applies quantum computing to simpler qubit spaces with a few positions, extending the formalism to a 2D x-y plane. It serves as a proof of concept for scalable quantum computing-based generative random walk algorithms in music and audio applications. Furthermore, the approach is applicable to generic multidimensional sound spaces, as the algorithms are not strictly constrained to rhythm generation and can be adapted to different musical structures.
翻译:本文提出了一种用于节奏生成的量子计算算法,旨在拓展和探索量子计算在艺术领域(特别是音乐领域)的应用。该算法将量子随机游走轨迹映射到节奏空间——一个插值节奏模式的二维界面。方法包含三个阶段。第一阶段涉及设计量子计算算法,并建立量子比特空间与节奏空间之间的映射关系。为最小化电路深度,采用了将二维量子随机游走分解为两个一维量子随机游走的方法。第二阶段通过引入经典势场来偏向量子随机游走的方向性,根据这些势场内的位置梯度调整波函数的概率分布。实现了四种势场:零势场、线性场、高斯势场以及惯性动力学下的高斯势场。第三阶段通过生成MIDI鼓点模式消息并将其传输至数字音频工作站(DAW)来实现这些路径的声音化。本研究基于现有将量子计算应用于具有少量位置的简单量子比特空间的文献,将形式体系扩展至二维x-y平面。它为音乐和音频应用中可扩展的基于量子计算的生成式随机游走算法提供了概念验证。此外,该方法适用于通用的多维声音空间,因为算法并不严格局限于节奏生成,可适配不同的音乐结构。