Gary Mooney
qMuVi: quantum Music Video tool

qMuVi: quantum Music Video tool

A frame from a qMuVi video showing a 4-qubit circuit above bar charts of basis-state probabilities, a fidelity gauge and a phase colour wheel
A frame from a qMuVi video. The circuit runs along the top, the bar charts show the probability of each basis state, colours show phase, and the gauge on the right tracks fidelity.

qMuVi is an open-source Python library that turns Qiskit quantum circuits into music videos. It’s available on PyPI and is part of the IBM Qiskit Ecosystem.

Quantum computing is notoriously unintuitive and hard to picture. qMuVi tries to connect a human observer to what’s happening inside a quantum computation. By turning circuits into music videos, it lets you “hear” and “see” how a quantum state evolves as an algorithm runs.

How it works

Try it

pip install qmuvi
import qmuvi
from qiskit import QuantumCircuit

circ = QuantumCircuit(2)
# barriers tell qMuVi where to sample the state
circ.barrier()
circ.h(0)
circ.barrier()
circ.cx(0, 1)
circ.barrier()

qmuvi.generate_qmuvi(circ, "bell_state")

This generates a music video of a Bell state being prepared. There are more examples, and the videos they produce, in the GitHub repository, and full documentation is online.

Origins

The qMuVi team with their hackathon award
The qMuVi team at the Qiskit Hackathon Melbourne 2022. From left to right: Yang Yang, me, Harish Vallury and Gan Yu Pin.

qMuVi was created for the IBM Qiskit Hackathon Melbourne 2022, where it won first place from the judges and the community vote. I was the team lead. The project was featured on the IBM Qiskit Blog, and I’ve continued developing it since.

Built with

Python, Qiskit and Qiskit Aer, matplotlib, MoviePy, mido for MIDI, and TiMidity++ for audio synthesis.

Gary Mooney

Gary Mooney

Quantum computing research fellow at the University of Melbourne. I also make games and like to climb rocks.