{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,12,24]],"date-time":"2025-12-24T14:55:33Z","timestamp":1766588133687,"version":"3.37.3"},"reference-count":62,"publisher":"Verein zur Forderung des Open Access Publizierens in den Quantenwissenschaften","license":[{"start":{"date-parts":[[2024,6,11]],"date-time":"2024-06-11T00:00:00Z","timestamp":1718064000000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100011033","name":"Spanish State Research Agency","doi-asserted-by":"publisher","award":["CEX2019-000904-S"],"award-info":[{"award-number":["CEX2019-000904-S"]}],"id":[{"id":"10.13039\/501100011033","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100011033","name":"Spanish State Research Agency","doi-asserted-by":"publisher","award":["CEX2019-000904-S-20-4"],"award-info":[{"award-number":["CEX2019-000904-S-20-4"]}],"id":[{"id":"10.13039\/501100011033","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100011033","name":"Spanish State Research Agency","doi-asserted-by":"publisher","award":["PID2020-113523GB-I00"],"award-info":[{"award-number":["PID2020-113523GB-I00"]}],"id":[{"id":"10.13039\/501100011033","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100011033","name":"Spanish State Research Agency","doi-asserted-by":"publisher","award":["PRE2020-091917"],"award-info":[{"award-number":["PRE2020-091917"]}],"id":[{"id":"10.13039\/501100011033","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100012818","name":"Comunidad de Madrid","doi-asserted-by":"publisher","award":["QUITEMAD-CM P2018\/TCS-4342"],"award-info":[{"award-number":["QUITEMAD-CM P2018\/TCS-4342"]}],"id":[{"id":"10.13039\/100012818","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100002911","name":"Universidad Complutense de Madrid","doi-asserted-by":"publisher","award":["FEI-EU-22-06"],"award-info":[{"award-number":["FEI-EU-22-06"]}],"id":[{"id":"10.13039\/501100002911","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100003339","name":"Consejo Superior de Investigaciones Cient\u00edficas","doi-asserted-by":"publisher","award":["PTI-001"],"award-info":[{"award-number":["PTI-001"]}],"id":[{"id":"10.13039\/501100003339","id-type":"DOI","asserted-by":"publisher"}]},{"name":"Ministry for Digital Transformation and of Civil Service of the Spanish Government","award":["QUANTUM ENIA"],"award-info":[{"award-number":["QUANTUM ENIA"]}]}],"content-domain":{"domain":["quantum-journal.org"],"crossmark-restriction":false},"short-container-title":["Quantum"],"abstract":"<jats:p>Tensor networks are factorizations of high-dimensional tensors into networks of smaller tensors. They have applications in physics and mathematics, and recently have been proposed as promising machine learning architectures. To ease the integration of tensor networks in machine learning pipelines, we introduce TensorKrowch, an open source Python library built on top of PyTorch. Providing a user-friendly interface, TensorKrowch allows users to construct any tensor network, train it, and integrate it as a layer in more intricate deep learning models. In this paper, we describe the main functionality and basic usage of TensorKrowch, and provide technical details on its building blocks and the optimizations performed to achieve efficient operation.<\/jats:p>","DOI":"10.22331\/q-2024-06-11-1364","type":"journal-article","created":{"date-parts":[[2024,6,11]],"date-time":"2024-06-11T11:48:38Z","timestamp":1718106518000},"page":"1364","update-policy":"https:\/\/doi.org\/10.22331\/q-crossmark-policy-page","source":"Crossref","is-referenced-by-count":3,"title":["TensorKrowch: Smooth integration of tensor networks in machine learning"],"prefix":"10.22331","volume":"8","author":[{"given":"Jos\u00e9 Ram\u00f3n","family":"Pareja Monturiol","sequence":"first","affiliation":[{"name":"Departamento de An\u00e1lisis Matem\u00e1tico, Universidad Complutense de Madrid, 28040 Madrid, Spain"},{"name":"Instituto de Ciencias Matem\u00e1ticas (CSIC-UAM-UC3M-UCM), 28049 Madrid, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"David","family":"P\u00e9rez-Garc\u00eda","sequence":"additional","affiliation":[{"name":"Departamento de An\u00e1lisis Matem\u00e1tico, Universidad Complutense de Madrid, 28040 Madrid, Spain"},{"name":"Instituto de Ciencias Matem\u00e1ticas (CSIC-UAM-UC3M-UCM), 28049 Madrid, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Alejandro","family":"Pozas-Kerstjens","sequence":"additional","affiliation":[{"name":"Instituto de Ciencias Matem\u00e1ticas (CSIC-UAM-UC3M-UCM), 28049 Madrid, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"9598","published-online":{"date-parts":[[2024,6,11]]},"reference":[{"key":"0","doi-asserted-by":"publisher","unstructured":"M. Fannes, B. Nachtergaele, and R. F. Werner, Commun. Math. Phys. 144, 443 (1992).","DOI":"10.1007\/BF02099178"},{"key":"1","doi-asserted-by":"publisher","unstructured":"S. R. White, Phys. Rev. Lett. 69, 2863 (1992).","DOI":"10.1103\/PhysRevLett.69.2863"},{"key":"2","doi-asserted-by":"publisher","unstructured":"G. Vidal, Phys. Rev. Lett. 91, 147902 (2003), arXiv:quant-ph\/0301063.","DOI":"10.1103\/PhysRevLett.91.147902"},{"key":"3","doi-asserted-by":"publisher","unstructured":"D. P\u00e9rez-Garc\u00eda, F. Verstraete, M. M. Wolf, and J. I. Cirac, Quantum Inf. Comput. 7, 401 (2007), arXiv:quant-ph\/0608197.","DOI":"10.26421\/QIC7.5-6-1"},{"key":"4","doi-asserted-by":"publisher","unstructured":"G. Vidal, Phys. Rev. Lett. 99, 220405 (2007), arXiv:cond-mat\/0512165.","DOI":"10.1103\/PhysRevLett.99.220405"},{"key":"5","doi-asserted-by":"publisher","unstructured":"G. Vidal, Phys. Rev. Lett. 101, 110501 (2008), arXiv:quant-ph\/0610099.","DOI":"10.1103\/PhysRevLett.101.110501"},{"key":"6","doi-asserted-by":"publisher","unstructured":"G. Evenbly and G. Vidal, Phys. Rev. B 79, 144108 (2009), arXiv:0707.1454.","DOI":"10.1103\/PhysRevB.79.144108"},{"key":"7","doi-asserted-by":"publisher","unstructured":"Y.-Y. Shi, L.-M. Duan, and G. Vidal, Phys. Rev. A 74, 022320 (2006), arXiv:quant-ph\/0511070.","DOI":"10.1103\/PhysRevA.74.022320"},{"key":"8","doi-asserted-by":"publisher","unstructured":"L. Tagliacozzo, G. Evenbly, and G. Vidal, Phys. Rev. B 80, 235127 (2009), arXiv:0903.5017.","DOI":"10.1103\/PhysRevB.80.235127"},{"key":"9","doi-asserted-by":"publisher","unstructured":"V. Murg, F. Verstraete, \u00d6. Legeza, and R. M. Noack, Phys. Rev. B 82, 205105 (2010), arXiv:1006.3095.","DOI":"10.1103\/PhysRevB.82.205105"},{"key":"10","doi-asserted-by":"publisher","unstructured":"K. H\u00e9mery, F. Pollmann, and D. J. Luitz, Phys. Rev. B 100, 104303 (2019), arXiv:1901.05793.","DOI":"10.1103\/PhysRevB.100.104303"},{"key":"11","doi-asserted-by":"publisher","unstructured":"S.-H. Lin, M. P. Zaletel, and F. Pollmann, Phys. Rev. B 106, 245102 (2022), arXiv:1908.07545.","DOI":"10.1103\/PhysRevB.106.245102"},{"key":"12","doi-asserted-by":"publisher","unstructured":"T. Soejima, K. Siva, N. Bultinck, S. Chatterjee, F. Pollmann, and M. P. Zaletel, Phys. Rev. B 101, 085117 (2020), arXiv:1908.07545.","DOI":"10.1103\/PhysRevB.101.085117"},{"key":"13","doi-asserted-by":"publisher","unstructured":"F. Pan, K. Chen, and P. Zhang, Phys. Rev. Lett. 129, 090502 (2022), arXiv:2111.03011.","DOI":"10.1103\/PhysRevLett.129.090502"},{"key":"14","unstructured":"C. Oh, M. Liu, Y. Alexeev, B. Fefferman, and L. Jiang, Tensor network algorithm for simulating experimental Gaussian boson sampling (2023), arXiv:2306.03709."},{"key":"15","doi-asserted-by":"publisher","unstructured":"S. S\u00e1nchez-Ram\u00edrez, J. Conejero, F. Lordan, A. Queralt, T. Cortes, R. M. Badia, and A. Garc\u00eda-Saez, in 2021 IEEE\/ACM Second International Workshop on Quantum Computing Software (QCS) (2021) pp. 1\u20138, arXiv:2201.06620.","DOI":"10.1109\/QCS54837.2021.00004"},{"key":"16","doi-asserted-by":"publisher","unstructured":"U. Schollw\u00f6ck, Rev. Mod. Phys. 77, 259 (2005), arXiv:cond-mat\/0409292.","DOI":"10.1103\/RevModPhys.77.259"},{"key":"17","doi-asserted-by":"publisher","unstructured":"I. V. Oseledets, SIAM J. Sci. Comput. 33, 2295 (2011a).","DOI":"10.1137\/090752286"},{"key":"18","doi-asserted-by":"publisher","unstructured":"I. V. Oseledets, Comput. Method Appl. Math. 11, 382 (2011b).","DOI":"10.2478\/cmam-2011-0021"},{"key":"19","doi-asserted-by":"publisher","unstructured":"S. V. Dolgov and D. V. Savostyanov, Comput. Phys. Commun. 246, 106869 (2020), arXiv:1903.11554.","DOI":"10.1016\/j.cpc.2019.106869"},{"key":"20","doi-asserted-by":"publisher","unstructured":"N. D. Sidiropoulos, L. De Lathauwer, X. Fu, K. Huang, E. E. Papalexakis, and C. Faloutsos, IEEE Trans. Signal Process. 65, 3551 (2017), arXiv:1607.01668.","DOI":"10.1109\/TSP.2017.2690524"},{"key":"21","doi-asserted-by":"publisher","unstructured":"S. V. Dolgov and D. V. Savostyanov, Tensor product approach to modelling epidemics on networks (2022), arXiv:2209.03756.","DOI":"10.1016\/j.amc.2023.128290"},{"key":"22","unstructured":"E. Stoudenmire and D. J. Schwab, in Advances in Neural Information Processing Systems, Vol. 29, edited by D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett (Curran Associates, Inc., 2016) pp. 4799\u20134807, arXiv:1605.05775."},{"key":"23","doi-asserted-by":"publisher","unstructured":"A. Novikov, M. Trofimov, and I. V. Oseledets, Bull. Pol. Acad. Sci. Tech. Sci. 66, 789 (2018), arXiv:1605.03795.","DOI":"10.24425\/bpas.2018.125926"},{"key":"24","doi-asserted-by":"publisher","unstructured":"J. I. Cirac, D. P\u00e9rez-Garc\u00eda, N. Schuch, and F. Verstraete, Rev. Mod. Phys. 93, 045003 (2021), arXiv:2011.12127.","DOI":"10.1103\/RevModPhys.93.045003"},{"key":"25","doi-asserted-by":"publisher","unstructured":"I. Glasser, N. Pancotti, and J. I. Cirac, IEEE Access 8, 68169 (2020), arXiv:1806.05964.","DOI":"10.1109\/ACCESS.2020.2986279"},{"key":"26","unstructured":"J. Miller, G. Rabusseau, and J. Terilla, in Proceedings of The 24th International Conference on Artificial Intelligence and Statistics, Proceedings of Machine Learning Research, Vol. 130, edited by A. Banerjee and K. Fukumizu (PMLR, 2021) pp. 3079\u20133087, arXiv:2003.01039."},{"key":"27","doi-asserted-by":"publisher","unstructured":"J. Lopez-Piqueres, J. Chen, and A. Perdomo-Ortiz, Mach. Learn.: Sci. Technol. 4, 035009 (2023), arXiv:2211.09121.","DOI":"10.1088\/2632-2153\/ace0f5"},{"key":"28","doi-asserted-by":"publisher","unstructured":"D. Liu, S.-J. Ran, P. Wittek, C. Peng, R. Bl\u00e1zquez Garc\u00eda, G. Su, and M. Lewenstein, New J. Phys. 21, 073059 (2019), arXiv:1710.04833.","DOI":"10.1088\/1367-2630\/ab31ef"},{"key":"29","doi-asserted-by":"publisher","unstructured":"S. Cheng, L. Wang, T. Xiang, and P. Zhang, Phys. Rev. B 99, 155131 (2019), arXiv:1901.02217.","DOI":"10.1103\/PhysRevB.99.155131"},{"key":"30","doi-asserted-by":"crossref","unstructured":"T. Vieijra, L. Vanderstraeten, and F. Verstraete, Generative modeling with projected entangled-pair states (2022), arXiv:2202.08177.","DOI":"10.1103\/PhysRevB.104.235141"},{"key":"31","doi-asserted-by":"publisher","unstructured":"F. Verstraete, M. M. Wolf, D. P\u00e9rez-Garc\u00eda, and J. I. Cirac, Phys. Rev. Lett. 96, 220601 (2006), arXiv:quant-ph\/0601075.","DOI":"10.1103\/PhysRevLett.96.220601"},{"key":"32","unstructured":"J. Wang, C. Roberts, G. Vidal, and S. Leichenauer, Anomaly detection with tensor networks (2020), arXiv:2006.02516."},{"key":"33","unstructured":"A. Novikov, D. Podoprikhin, A. Osokin, and D. P. Vetrov, in Advances in Neural Information Processing Systems, Vol. 28, edited by C. Cortes, N. Lawrence, D. Lee, M. Sugiyama, and R. Garnett (Curran Associates, Inc., 2015) arXiv:1509.06569."},{"key":"34","unstructured":"V. Lebedev, Y. Ganin, M. Rakhuba, I. Oseledets, and V. Lempitsky, Speeding-up convolutional neural networks using fine-tuned CP-decomposition (2014), arXiv:1412.6553."},{"key":"35","unstructured":"X. Ma, P. Zhang, S. Zhang, N. Duan, Y. Hou, M. Zhou, and D. Song, in Advances in Neural Information Processing Systems, Vol. 32, edited by H. Wallach, H. Larochelle, A. Beygelzimer, F. d&apos;Alch\u00e9-Buc, E. Fox, and R. Garnett (Curran Associates, Inc., 2019) arXiv:1906.09777."},{"key":"36","unstructured":"K. Zhang, C. Hawkins, X. Zhang, C. Hao, and Z. Zhang, in Proceedings of the ICLR 2021 Workshop of Hardware Aware Efficient Training (2021) arXiv:2104.03420."},{"key":"37","doi-asserted-by":"publisher","unstructured":"J. Tangpanitanon, C. Mangkang, P. Bhadola, Y. Minato, D. G. Angelakis, and T. Chotibut, New J. Phys. 24, 053032 (2022), arXiv:2112.08628.","DOI":"10.1088\/1367-2630\/ac6232"},{"key":"38","unstructured":"B. Aizpurua, S. Palmer, and R. Or\u00fas, Tensor networks for explainable machine learning in cybersecurity (2024), arXiv:2401.00867."},{"key":"39","unstructured":"A. Pozas-Kerstjens, S. Hern\u00e1ndez-Santana, J. R. Pareja Monturiol, M. Castrill\u00f3n L\u00f3pez, G. Scarpa, C. E. Gonz\u00e1lez-Guill\u00e9n, and D. P\u00e9rez-Garc\u00eda, Physics solutions for machine learning privacy leaks (2022), arXiv:2202.12319."},{"key":"40","unstructured":"H. Xiao, K. Rasul, and R. Vollgraf, Fashion-MNIST: a novel image dataset for benchmarking machine learning algorithms (2017), arXiv:1708.07747."},{"key":"41","unstructured":"J. Miller, TorchMPS (2019), https:\/\/github.com\/jemisjoky\/TorchMPS."},{"key":"42","unstructured":"M. Usvyatsov, R. Ballester-Ripoll, and K. Schindler, J. Mach. Learn. Res. 23, 1 (2022), arXiv:2206.11128."},{"key":"43","unstructured":"J. Kossaifi, Y. Panagakis, A. Anandkumar, and M. Pantic, J. Mach. Learn. Res. 20, 1 (2019), arXiv:1610.09555."},{"key":"44","unstructured":"C. Roberts, A. Milsted, M. Ganahl, A. Zalcman, B. Fontaine, Y. Zou, J. Hidary, G. Vidal, and S. Leichenauer, TensorNetwork: A library for physics and machine learning (2019), arXiv:1905.01330."},{"key":"45","doi-asserted-by":"publisher","unstructured":"J. Gray, J. Open Source Softw. 3, 819 (2018).","DOI":"10.21105\/joss.00819"},{"key":"46","unstructured":"J. R. Pareja Monturiol, D. P\u00e9rez-Garc\u00eda, and A. Pozas-Kerstjens, TensorKrowch (2023), https:\/\/github.com\/joserapa98\/tensorkrowch."},{"key":"47","unstructured":"A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala, in Advances in Neural Information Processing Systems, Vol. 32, edited by H. Wallach, H. Larochelle, A. Beygelzimer, F. d&apos;Alch\u00e9 Buc, E. Fox, and R. Garnett (Curran Associates, Inc., 2019) arXiv:1912.01703."},{"key":"48","doi-asserted-by":"publisher","unstructured":"R. Or\u00fas, Ann. Phys. 349, 117 (2014), arXiv:1306.2164.","DOI":"10.1016\/j.aop.2014.06.013"},{"key":"49","doi-asserted-by":"publisher","unstructured":"J. C. Bridgeman and C. T. Chubb, J. Phys. A: Math. Theor. 50, 223001 (2017), arXiv:1603.03039.","DOI":"10.1088\/1751-8121\/aa6dc3"},{"key":"50","doi-asserted-by":"publisher","unstructured":"T. G. Kolda and B. W. Bader, SIAM Rev. 51, 455 (2009).","DOI":"10.1137\/07070111X"},{"key":"51","doi-asserted-by":"publisher","unstructured":"B. Pirvu, V. Murg, J. I. Cirac, and F. Verstraete, New J. Phys. 12, 025012 (2010), arXiv:0804.3976.","DOI":"10.1088\/1367-2630\/12\/2\/025012"},{"key":"52","unstructured":"J. Martyn, G. Vidal, C. Roberts, and S. Leichenauer, Entanglement and tensor networks for supervised image classification (2020), arXiv:2007.06082."},{"key":"53","doi-asserted-by":"publisher","unstructured":"J. A. Reyes and E. M. Stoudenmire, Mach. Learn.: Sci. Technol. 2, 035036 (2021), arXiv:2001.08286.","DOI":"10.1088\/2632-2153\/abffe8"},{"key":"54","doi-asserted-by":"publisher","unstructured":"D. G. A. Smith and J. Gray, J. Open Source Softw. 3, 753 (2018).","DOI":"10.21105\/joss.00753"},{"key":"55","doi-asserted-by":"publisher","unstructured":"V. Zauner-Stauber, L. Vanderstraeten, M. T. Fishman, F. Verstraete, and J. Haegeman, Phys. Rev. B 97, 045145 (2018), arXiv:1701.07035.","DOI":"10.1103\/PhysRevB.97.045145"},{"key":"56","doi-asserted-by":"publisher","unstructured":"J. Gray and S. Kourtis, Quantum 5, 410 (2021), arXiv:2002.01935.","DOI":"10.22331\/q-2021-03-15-410"},{"key":"57","doi-asserted-by":"publisher","unstructured":"A. Acuaviva, V. Makam, H. Nieuwboer, D. P\u00e9rez-Garc\u00eda, F. Sittner, M. Walter, and F. Witteveen, in 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS) (2023) pp. 328\u2013362, arXiv:2209.14358.","DOI":"10.1109\/FOCS57990.2023.00027"},{"key":"58","doi-asserted-by":"publisher","unstructured":"C. Damm, M. Holzer, and P. McKenzie, Comput. Complex. 11, 54 (2002).","DOI":"10.1007\/s00037-000-0170-4"},{"key":"59","doi-asserted-by":"publisher","unstructured":"C. Hawkins, X. Liu, and Z. Zhang, SIAM J. Math. Data Sci. 4, 46 (2022), arXiv:2010.08689.","DOI":"10.1137\/21M1391444"},{"key":"60","doi-asserted-by":"publisher","unstructured":"N. Kargas and N. D. Sidiropoulos, IEEE Trans. Signal Process. 69, 1097 (2021).","DOI":"10.1109\/TSP.2021.3055000"},{"key":"61","doi-asserted-by":"publisher","unstructured":"Y. Liu and M. K. Ng, Knowl.-Based Syst. 241, 108171 (2022).","DOI":"10.1016\/j.knosys.2022.108171"}],"container-title":["Quantum"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/quantum-journal.org\/papers\/q-2024-06-11-1364\/pdf\/","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"}],"deposited":{"date-parts":[[2024,6,11]],"date-time":"2024-06-11T11:55:40Z","timestamp":1718106940000},"score":1,"resource":{"primary":{"URL":"https:\/\/quantum-journal.org\/papers\/q-2024-06-11-1364\/"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,6,11]]},"references-count":62,"URL":"https:\/\/doi.org\/10.22331\/q-2024-06-11-1364","archive":["CLOCKSS"],"relation":{},"ISSN":["2521-327X"],"issn-type":[{"type":"electronic","value":"2521-327X"}],"subject":[],"published":{"date-parts":[[2024,6,11]]},"article-number":"1364"}}