{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,14]],"date-time":"2026-05-14T22:31:55Z","timestamp":1778797915941,"version":"3.51.4"},"reference-count":58,"publisher":"Verein zur Forderung des Open Access Publizierens in den Quantenwissenschaften","license":[{"start":{"date-parts":[[2022,9,22]],"date-time":"2022-09-22T00:00:00Z","timestamp":1663804800000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["quantum-journal.org"],"crossmark-restriction":false},"short-container-title":["Quantum"],"abstract":"<jats:p>Quantum technologies are moving towards the development of novel hardware devices based on quantum bits (qubits). In parallel to the development of quantum devices, efficient simulation tools are needed in order to design and benchmark quantum algorithms and applications before deployment on quantum hardware. In this context, we present a first attempt to perform circuit-based quantum simulation using the just-in-time (JIT) compilation technique on multiple hardware architectures and configurations based on single-node central processing units (CPUs) and graphics processing units (GPUs). One of the major challenges in scientific code development is to balance the level of complexity between algorithms and programming techniques without losing performance or degrading code readability. In this context, we have developed <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mml:mrow class=\"MJX-TeXAtom-ORD\"><mml:mtext mathvariant=\"monospace\">qibojit<\/mml:mtext><\/mml:mrow><\/mml:math>: a new module for the Qibo quantum computing framework, which uses a just-in-time compilation approach through Python. We perform systematic performance benchmarks between our JIT approach and a subset of relevant publicly available libraries for quantum computing. We show that our novel approach simplifies the complex aspects of the implementation without deteriorating performance.<\/jats:p>","DOI":"10.22331\/q-2022-09-22-814","type":"journal-article","created":{"date-parts":[[2022,9,22]],"date-time":"2022-09-22T15:16:30Z","timestamp":1663859790000},"page":"814","update-policy":"https:\/\/doi.org\/10.22331\/q-crossmark-policy-page","source":"Crossref","is-referenced-by-count":22,"title":["Quantum simulation with just-in-time compilation"],"prefix":"10.22331","volume":"6","author":[{"given":"Stavros","family":"Efthymiou","sequence":"first","affiliation":[{"name":"Quantum Research Centre, Technology Innovation Institute, Abu Dhabi, UAE."}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Marco","family":"Lazzarin","sequence":"additional","affiliation":[{"name":"Quantum Research Centre, Technology Innovation Institute, Abu Dhabi, UAE."}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Andrea","family":"Pasquale","sequence":"additional","affiliation":[{"name":"Quantum Research Centre, Technology Innovation Institute, Abu Dhabi, UAE."},{"name":"TIF Lab, Dipartimento di Fisica, Universit\u00e0 degli Studi di Milano and INFN Sezione di Milano, Milan, Italy."}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Stefano","family":"Carrazza","sequence":"additional","affiliation":[{"name":"Quantum Research Centre, Technology Innovation Institute, Abu Dhabi, UAE."},{"name":"TIF Lab, Dipartimento di Fisica, Universit\u00e0 degli Studi di Milano and INFN Sezione di Milano, Milan, Italy."},{"name":"CERN, Theoretical Physics Department, CH-1211 Geneva 23, Switzerland."}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"9598","published-online":{"date-parts":[[2022,9,22]]},"reference":[{"key":"0","doi-asserted-by":"publisher","unstructured":"J. Preskill, Quantum 2, 79 (2018).","DOI":"10.22331\/q-2018-08-06-79"},{"key":"1","doi-asserted-by":"publisher","unstructured":"F. Arute et al., Nature 574, 505 (2019).","DOI":"10.1038\/s41586-019-1666-5"},{"key":"2","doi-asserted-by":"publisher","unstructured":"H.-S. Zhong, H. Wang, Y.-H. Deng, M.-C. Chen, L.-C. Peng, Y.-H. Luo, J. Qin, D. Wu, X. Ding, Y. Hu, et al., Science 370, 1460 (2020).","DOI":"10.1126\/science.abe8770"},{"key":"3","unstructured":"Google Research, Google AI Quantum (2017)."},{"key":"4","unstructured":"IBM Research, IBM Quantum Experience (2016)."},{"key":"5","unstructured":"Rigetti, Rigetti Computing (2017)."},{"key":"6","unstructured":"Intel Corporation, Intel Quantum Computing (2017)."},{"key":"7","unstructured":"D-Wave Systems, The Quantum Computing Company (2011)."},{"key":"8","unstructured":"D-Wave Systems, D-Wave Neal."},{"key":"9","unstructured":"I. L. Markov, A. Fatima, S. V. Isakov, and S. Boixo, arXiv preprint arXiv:1807.10749 (2018a)."},{"key":"10","unstructured":"J. Chen and et al., Classical simulation of intermediate-size quantum circuits (2018), arXiv:1805.01450 [quant-ph]."},{"key":"11","doi-asserted-by":"publisher","unstructured":"S. Efthymiou, S. Ramos-Calderer, C. Bravo-Prieto, A. P\u00e9rez-Salinas, D. Garc\u00eda-Mart\u00edn, A. Garcia-Saez, J. I. Latorre, and S. Carrazza, Quantum Science and Technology 7, 015018 (2021).","DOI":"10.1088\/2058-9565\/ac39f5"},{"key":"12","doi-asserted-by":"publisher","unstructured":"The Qibo team, qiboteam\/qibo: Qibo.","DOI":"10.5281\/zenodo.3997194"},{"key":"13","unstructured":"S. Carrazza, S. Efthymiou, M. Lazzarin, and A. Pasquale, in 20th International Workshop on Advanced Computing and Analysis Techniques in Physics Research: AI Decoded - Towards Sustainable, Diverse, Performant and Effective Scientific Computing (2022) arXiv:2202.07017 [quant-ph]."},{"key":"14","unstructured":"The Qibo team (2022)."},{"key":"15","doi-asserted-by":"publisher","unstructured":"S. Carrazza, S. Efthymiou, M. Lazzarin, and A. Pasquale, qiboteam\/qibojit: qibojit.","DOI":"10.5281\/zenodo.5071354"},{"key":"16","unstructured":"S. K. Lam, A. Pitrou, and S. Seibert, in Proceedings of the Second Workshop on the LLVM Compiler Infrastructure in HPC (2015) pp. 1\u20136."},{"key":"17","unstructured":"R. Okuta, Y. Unno, D. Nishino, S. Hido, and C. Loomis, in Proceedings of Workshop on Machine Learning Systems (LearningSys) in The Thirty-first Annual Conference on Neural Information Processing Systems (NIPS) (2017)."},{"key":"18","doi-asserted-by":"publisher","unstructured":"G. Aleksandrowicz et al., Qiskit: An open-source framework for quantum computing (2019).","DOI":"10.5281\/ZENODO.2562110"},{"key":"19","doi-asserted-by":"publisher","unstructured":"Cirq Developers, Cirq (2021), See full list of authors on Github: https:\/\/github .com\/quantumlib\/Cirq\/graphs\/contributors.","DOI":"10.5281\/zenodo.5182845"},{"key":"20","doi-asserted-by":"publisher","unstructured":"Quantum AI team and collaborators, qsim (2020).","DOI":"10.5281\/zenodo.4023103"},{"key":"21","doi-asserted-by":"publisher","unstructured":"D. S. Steiger, T. H\u00e4ner, and M. Troyer, Quantum 2, 49 (2018).","DOI":"10.22331\/q-2018-01-31-49"},{"key":"22","doi-asserted-by":"publisher","unstructured":"T. H\u00e4ner, D. S. Steiger, K. Svore, and M. Troyer, Quantum Science and Technology 3, 020501 (2018).","DOI":"10.1088\/2058-9565\/aaa5cc"},{"key":"23","doi-asserted-by":"publisher","unstructured":"S. Mandr\u00e0, J. Marshall, E. G. Rieffel, and R. Biswas, in 2021 IEEE\/ACM Second International Workshop on Quantum Computing Software (QCS) (2021) pp. 99\u2013109.","DOI":"10.1109\/QCS54837.2021.00015"},{"key":"24","doi-asserted-by":"publisher","unstructured":"Y. Suzuki, Y. Kawase, Y. Masumura, Y. Hiraga, M. Nakadai, J. Chen, K. M. Nakanishi, K. Mitarai, R. Imai, S. Tamiya, T. Yamamoto, T. Yan, T. Kawakubo, Y. O. Nakagawa, Y. Ibe, Y. Zhang, H. Yamashita, H. Yoshimura, A. Hayashi, and K. Fujii, Quantum 5, 559 (2021).","DOI":"10.22331\/q-2021-10-06-559"},{"key":"25","unstructured":"A. Kelly, arXiv preprint arXiv:1805.00988 (2018)."},{"key":"26","unstructured":"T. Oliphant, Guide to NumPy (2006)."},{"key":"27","unstructured":"https:\/\/pypi.org\/project\/qibo."},{"key":"28","unstructured":"https:\/\/anaconda.org\/conda-forge\/qibo."},{"key":"29","unstructured":"M. Abadi, A. Agarwal, P. Barham, E. Brevdo, Z. Chen, C. Citro, G. S. Corrado, A. Davis, J. Dean, M. Devin, S. Ghemawat, I. Goodfellow, A. Harp, G. Irving, M. Isard, Y. Jia, R. Jozefowicz, L. Kaiser, M. Kudlur, J. Levenberg, D. Man\u00e9, R. Monga, S. Moore, D. Murray, C. Olah, M. Schuster, J. Shlens, B. Steiner, I. Sutskever, K. Talwar, P. Tucker, V. Vanhoucke, V. Vasudevan, F. Vi\u00e9gas, O. Vinyals, P. Warden, M. Wattenberg, M. Wicke, Y. Yu, and X. Zheng, TensorFlow: Large-scale machine learning on heterogeneous systems (2015), software available from tensorflow.org."},{"key":"30","unstructured":"https:\/\/github.com\/qiboteam\/qibotf."},{"key":"31","unstructured":"https:\/\/github.com\/qiboteam\/qibojit."},{"key":"32","doi-asserted-by":"publisher","unstructured":"N. Metropolis, A. W. Rosenbluth, M. N. Rosenbluth, A. H. Teller, and E. Teller, J. Chem. Phys. 21, 1087 (1953).","DOI":"10.1063\/1.1699114"},{"key":"33","unstructured":"J. Bradbury, R. Frostig, P. Hawkins, M. J. Johnson, C. Leary, D. Maclaurin, G. Necula, A. Paszke, J. VanderPlas, S. Wanderman-Milne, and Q. Zhang, JAX: composable transformations of Python+NumPy programs (2018)."},{"key":"34","unstructured":"G. Guennebaud, B. Jacob, et al., Eigen v3, http:\/\/eigen.tuxfamily.org (2010)."},{"key":"35","doi-asserted-by":"publisher","unstructured":"K. Rupp, P. Tillet, F. Rudolf, J. Weinbub, A. Morhammer, T. Grasser, A. J\u00fcngel, and S. Selberherr, SIAM Journal on Scientific Computing 38, S412 (2016), https:\/\/doi.org\/10.1137\/15M1026419.","DOI":"10.1137\/15M1026419"},{"key":"36","unstructured":"NVIDIA, Thrust (2020)."},{"key":"37","unstructured":"NVIDIA, nvcc (2022)."},{"key":"38","unstructured":"NVIDIA, cuQuantum SDK (2021)."},{"key":"39","doi-asserted-by":"publisher","unstructured":"S. Efthymiou, M. Lazzarin, S. Carrazza, and A. Pasquale, qiboteam\/qibojit-benchmarks: benchmarks v0.0.1 (2022).","DOI":"10.5281\/zenodo.6363155"},{"key":"40","unstructured":"A. W. Cross, L. S. Bishop, J. A. Smolin, and J. M. Gambetta, arXiv e-prints , arXiv:1707.03429 (2017), arXiv:1707.03429 [quant-ph]."},{"key":"41","doi-asserted-by":"publisher","unstructured":"A. W. Cross, A. Javadi-Abhari, T. Alexander, N. de Beaudrap, L. S. Bishop, S. Heidel, C. A. Ryan, J. Smolin, J. M. Gambetta, and B. R. Johnson, arXiv preprint arXiv:2104.14722 (2021).","DOI":"10.1145\/3505636"},{"key":"42","unstructured":"https:\/\/github.com\/quantumlib\/Cirq\/blob\/master\/cirq-core\/cirq\/experiments\/random_quantum_circuit_generation.py."},{"key":"43","unstructured":"https:\/\/qiskit.org\/documentation\/stubs\/qiskit.circuit.library.QuantumVolume.html."},{"key":"44","unstructured":"D. Coppersmith, An approximate Fourier transform useful in quantum factoring (2002), arXiv:quant-ph\/0201067 [quant-ph]."},{"key":"45","unstructured":"Circuit consisting of alternating layers of parametrized RY rotations and entangling CZ gates."},{"key":"46","doi-asserted-by":"publisher","unstructured":"I. L. Markov, A. Fatima, S. V. Isakov, and S. Boixo, arXiv preprint arXiv:1807.10749 10.48550\/arXiv.1807.10749 (2018b).","DOI":"10.48550\/arXiv.1807.10749"},{"key":"47","doi-asserted-by":"publisher","unstructured":"A. W. Cross, L. S. Bishop, S. Sheldon, P. D. Nation, and J. M. Gambetta, Physical Review A 100, 10.1103\/physreva.100.032328 (2019).","DOI":"10.1103\/physreva.100.032328"},{"key":"48","doi-asserted-by":"publisher","unstructured":"E. Bernstein and U. Vazirani, SIAM Journal on Computing 26, 1411 (1997), https:\/\/doi.org\/10.1137\/S0097539796300921.","DOI":"10.1137\/S0097539796300921"},{"key":"49","unstructured":"ATOS, Quantum Learning Machine."},{"key":"50","unstructured":"NVIDIA team, NVIDIA DGX Station."},{"key":"51","unstructured":"Qiskit-aer 0.10.3, qiskit-aer-gpu 0.10.2."},{"key":"52","unstructured":"M. Smelyanskiy, N. P. D. Sawaya, and A. Aspuru-Guzik, qHiPSTER: The quantum high performance software testing environment (2016), arXiv:arXiv:1601.07195 [quant-ph]."},{"key":"53","unstructured":"M. B. et al., TensorFlow Quantum: A software framework for quantum machine learning (2020), arXiv:arXiv:2003.02989 [quant-ph]."},{"key":"54","unstructured":"S. V. I. et al., Simulations of quantum circuits with approximate noise using qsim and Cirq (2021), arXiv:arXiv:2111.02396 [quant-ph]."},{"key":"55","doi-asserted-by":"publisher","unstructured":"T. Kadowaki and H. Nishimori, Physical Review E 58, pp. 5355\u20135363 (1998).","DOI":"10.1103\/physreve.58.5355"},{"key":"56","doi-asserted-by":"publisher","unstructured":"E. Crosson and A. W. Harrow, 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS) 10.1109\/focs.2016.81 (2016).","DOI":"10.1109\/focs.2016.81"},{"key":"57","doi-asserted-by":"publisher","unstructured":"S. Paeckel and et al., Annals of Physics 411, pp. 167998 (2019).","DOI":"10.1016\/j.aop.2019.167998"}],"container-title":["Quantum"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/quantum-journal.org\/papers\/q-2022-09-22-814\/pdf\/","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"}],"deposited":{"date-parts":[[2022,9,22]],"date-time":"2022-09-22T15:16:49Z","timestamp":1663859809000},"score":1,"resource":{"primary":{"URL":"https:\/\/quantum-journal.org\/papers\/q-2022-09-22-814\/"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,9,22]]},"references-count":58,"URL":"https:\/\/doi.org\/10.22331\/q-2022-09-22-814","archive":["CLOCKSS"],"relation":{},"ISSN":["2521-327X"],"issn-type":[{"value":"2521-327X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,9,22]]},"article-number":"814"}}