Skip to main content

OSC-Qasm: Interfacing Music Software with Quantum Computing

  • Conference paper
  • First Online:
Artificial Intelligence in Music, Sound, Art and Design (EvoMUSART 2023)

Abstract

OSC-Qasm is a cross-platform, Python-based, OSC interface for executing Qasm code. It serves as a simple way to connect creative programming environments like Max (with The QAC Toolkit) and Pure Data with real quantum hardware, using the Open Sound Control protocol. In this paper, the authors introduce the context and meaning of developing a tool like this, and what it can offer to creative artists.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    OSC-Qasm software and source code is available for download [10].

  2. 2.

    Running jobs on real IBMQ hardware requires user credentials. The number of available backends depends on these credentials. At the time of this writing, several backends are publicly available with a free IBMQ account. Additionally, IBM provides cloud-based backend simulators for larger jobs.

  3. 3.

    Additional information is also sent back under the /info path, and errors are flagged with the /error path. It is important to note that the receiving client is, in fact, also running an OSC server.

  4. 4.

    The user needs to either navigate to the directory where the application is, or drag and drop it onto a terminal window. The Windows version would start with OSC_Qasm_2.exe, and the MacOS version with OSC_Qasm_2.app/Contents/MacOS/OSC_Qasm_2.

References

  1. Bernstein, E., Vazirani, U.: Quantum complexity theory. In: Proceedings of the Twenty-Fifth Annual ACM Symposium on Theory of Computing. pp. 11–20. STOC 1993, Association for Computing Machinery, New York, NY, USA, Jun 1993. https://doi.org/10.1145/167088.167097

  2. Cross, A.W., Bishop, L.S., Smolin, J.A., Gambetta, J.M.: Open Quantum Assembly Language. arXiv (Quantum Physics), Jul 2017. https://arxiv.org/abs/1707.03429. Accessed 30 Jan 2023

  3. Gambetta, J.: Expanding the IBM Quantum Roadmap to anticipate the future of quantum-centric supercomputing. IBM Research Blog, May 2022. https://research.ibm.com/blog/ibm-quantum-roadmap-2025. Accessed 30 Jan 2023

  4. Gambetta, J., et al.: Qiskit/qiskit: Qiskit 0.23.6 (Feb 2021), https://zenodo.org/record/4549740. Accessed 30 Jan 2023

  5. Gill, S.S., et al.: Quantum computing: a taxonomy, systematic review and future directions. Technical report, arXiv (Emerging Technologies), September 2021. https://arxiv.org/abs/2010.15559. Accessed 30 Jan 2023

  6. Hamachi by LogMeIn. https://www.vpn.net/. Accessed 30 Jan 2023

  7. Hamido, O.C.: Adventures in Quantumland. Ph.D. thesis, UC Irvine (2021), https://escholarship.org/uc/item/93c1t8vx. Accessed 30 Jan 2023

  8. Hamido, O.C.: The QAC Toolkit (2021). https://www.quantumland.art/qac. Accessed 30 Jan 2023

  9. Hamido, O.C.: QAC: quantum-computing aided composition. In: Miranda, E.R. (ed.) Quantum Computer Music: Foundations, Methods and Advanced Concepts, pp. 159–195. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-13909-3_8

  10. Hamido, O.C., Itaboraí, P.V.: OSC-Qasm, May 2022. https://doi.org/10.5281/zenodo.6585064, https://github.com/iccmr-quantum/OSC-Qasm. Accessed 30 Jan 2023

  11. IBM-Quantum online portal. https://quantum-computing.ibm.com/. Accessed 30 Jan 2023

  12. 1st International Symposium on Quantum Computing and Musical Creativity (Nov 2021), https://iccmr-quantum.github.io/1st_isqcmc/. Last Accessed 30 Jan 2023

  13. Max MSP, Cycling ’74 (Feb 2021), https://cycling74.com/. Accessed 30 Jan 2023

  14. Miranda, E.R. (ed.): Quantum Computer Music: Foundations, Methods and Advanced Concepts. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-13909-3

  15. Miranda, E.R. (ed.): Quantum Computing in the Arts and Humanities: An Introduction to Core Concepts, Theory and Applications. Springer, Cham (2022), https://doi.org/10.1007/978-3-030-95538-0

  16. Montanaro, A.: Quantum algorithms: an overview. NPJ Quant. Inf. 2(1), 1–8 (2016). https://doi.org/10.1038/npjqi.2015.23

    Article  Google Scholar 

  17. Puckette, M.: Pure Data (Pd): real-time music and multimedia environment. https://msp.ucsd.edu/software.html. Accessed 30 Jan 2023

  18. Qiskit webpage. https://qiskit.org/. Accessed 30 Jan 2023

  19. QuTune Project webpage. https://iccmr-quantum.github.io/. Accessed 30 Jan 2023

  20. Ravi, G.S., Smith, K.N., Gokhale, P., Chong, F.T.: Quantum computing in the cloud: Analyzing job and machine characteristics. arXiv (Quantum Physics), Mar 2022. https://arxiv.org/abs/2203.13121. Accessed 30 Jan 2023

  21. SuperCollider webpage. https://supercollider.github.io/. Accessed 30 Jan 2023

  22. Upama, P.B., et al.: Evolution of quantum computing: a systematic survey on the use of quantum computing tools. Technical report, arXiv (Quantum Physics), Apr 2022. https://arxiv.org/abs/2204.01856. Accessed 30 Jan 2023

  23. Woehr, J., Hamido, O.C.: QisJob, February 2021. https://doi.org/10.5281/zenodo.4554481. Accessed 30 Jan 2023

Download references

Acknowledgment

The authors would like to thank other members of the QuTune Project [19], as well as all the interested participants at the 1st ISQCMC. This work was done thanks to the support from EPSRC QCS Hub.

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Hamido, O.C., Itaboraí, P.V. (2023). OSC-Qasm: Interfacing Music Software with Quantum Computing. In: Johnson, C., Rodríguez-Fernández, N., Rebelo, S.M. (eds) Artificial Intelligence in Music, Sound, Art and Design. EvoMUSART 2023. Lecture Notes in Computer Science, vol 13988. Springer, Cham. https://doi.org/10.1007/978-3-031-29956-8_24

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-29956-8_24

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-29955-1

  • Online ISBN: 978-3-031-29956-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics