{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,18]],"date-time":"2026-06-18T03:59:58Z","timestamp":1781755198274,"version":"3.54.5"},"reference-count":56,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2023,5,26]],"date-time":"2023-05-26T00:00:00Z","timestamp":1685059200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"name":"ARC Discovery Early Career Researcher Award","award":["DE180100156"],"award-info":[{"award-number":["DE180100156"]}]},{"name":"ARC Discovery Program","award":["DP210102449"],"award-info":[{"award-number":["DP210102449"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2023,10,31]]},"abstract":"<jats:p>This article proves a structured program theorem for flowchart quantum programs. The theorem states that any flowchart quantum program is equivalent to a single quantum program that repeatedly executes a quantum measurement and a subprogram, so long as the measurement outcome is true. Moreover, their expected runtime, variance, and general moments are the same. This theorem simplifies the quantum program\u2019s verification significantly.<\/jats:p>\n          <jats:p>\n            <jats:list list-type=\"simple\">\n              <jats:list-item>\n                <jats:label>\u2013<\/jats:label>\n                <jats:p>\n                  We derive an analytical characterization of the termination problem for quantum programs in polynomial time. Our procedure is more efficient and accurate with much simpler techniques than the analysis of this problem, as described in [\n                  <jats:xref ref-type=\"bibr\">29<\/jats:xref>\n                  ].\n                <\/jats:p>\n              <\/jats:list-item>\n              <jats:list-item>\n                <jats:label>\u2013<\/jats:label>\n                <jats:p>\n                  We compute the expected runtime\n                  <jats:italic>analytically<\/jats:italic>\n                  and\n                  <jats:italic>exactly<\/jats:italic>\n                  for quantum programs in polynomial time. This result improves the methods based on the weakest precondition calculus for the question recently developed in [\n                  <jats:xref ref-type=\"bibr\">31<\/jats:xref>\n                  ,\n                  <jats:xref ref-type=\"bibr\">34<\/jats:xref>\n                  ].\n                <\/jats:p>\n              <\/jats:list-item>\n              <jats:list-item>\n                <jats:label>\u2013<\/jats:label>\n                <jats:p>\n                  We show that a single loop rule is a relatively complete Hoare logic for quantum programs after applying our structured theorem. Although using fewer rules, our method verifies a broader class of quantum programs, compared with the results in [\n                  <jats:xref ref-type=\"bibr\">45<\/jats:xref>\n                  ] and [\n                  <jats:xref ref-type=\"bibr\">56<\/jats:xref>\n                  ].\n                <\/jats:p>\n              <\/jats:list-item>\n            <\/jats:list>\n          <\/jats:p>","DOI":"10.1145\/3587154","type":"journal-article","created":{"date-parts":[[2023,3,10]],"date-time":"2023-03-10T11:47:45Z","timestamp":1678448865000},"page":"1-35","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":3,"title":["Structured Theorem for Quantum Programs and its Applications"],"prefix":"10.1145","volume":"32","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-1188-3032","authenticated-orcid":false,"given":"Nengkun","family":"Yu","sequence":"first","affiliation":[{"name":"Department of Computer Science, Stony Brook University and Centre for Quantum Software and Information, University of Technology Sydney"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,5,26]]},"reference":[{"key":"e_1_3_3_2_2","volume-title":"Scaffold: Quantum Programming Language","author":"Abhari Ali Javadi","year":"2012","unstructured":"Ali Javadi Abhari, Arvin Faruque, Mohammad Javad Dousti, Lukas Svec, Oana Catu, Amlan Chakrabati, Chen-Fu Chiang, Seth Vanderwilt, John Black, Fred Chong, Margaret Martonosi, Martin Suchara, Ken Brown, Massoud Pedram, and Todd Brun. 2012. Scaffold: Quantum Programming Language. Technical Report TR-934-12. Dept. of Computer Science, Princeton University NJ. Retrieved from ftp:\/\/ftp.cs.princeton.edu\/reports\/2012\/934.pdf."},{"key":"e_1_3_3_3_2","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.2562110"},{"key":"e_1_3_3_4_2","doi-asserted-by":"publisher","DOI":"10.1038\/s41586-019-1666-5"},{"key":"e_1_3_3_5_2","unstructured":"E. Ashcroft and Z. Manna. 1979. Classics in Software Engineering . Yourdon Press."},{"key":"e_1_3_3_6_2","doi-asserted-by":"publisher","DOI":"10.1145\/3093333.3009896"},{"key":"e_1_3_3_7_2","doi-asserted-by":"publisher","DOI":"10.1103\/PhysRevLett.114.080502"},{"key":"e_1_3_3_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/355592.365646"},{"key":"e_1_3_3_9_2","volume-title":"Preliminary Discussion of the Logical Design of an Electronic Computing Instrument","author":"Burks Arthur W.","year":"1946","unstructured":"Arthur W. Burks, Herman H. Goldstine, and John von Neumann. 1946. Preliminary Discussion of the Logical Design of an Electronic Computing Instrument. Springer, Berlin."},{"key":"e_1_3_3_10_2","doi-asserted-by":"publisher","DOI":"10.1142\/S0129054194000165"},{"key":"e_1_3_3_11_2","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837639"},{"key":"e_1_3_3_12_2","doi-asserted-by":"publisher","DOI":"10.1145\/363534.363539"},{"key":"e_1_3_3_13_2","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129506005251"},{"key":"e_1_3_3_14_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-31424-7_14"},{"key":"e_1_3_3_15_2","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2005.39"},{"key":"e_1_3_3_16_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-40313-2_35"},{"key":"e_1_3_3_17_2","doi-asserted-by":"publisher","DOI":"10.1145\/2676726.2677001"},{"key":"e_1_3_3_18_2","volume-title":"Algorithms Related to Multiplicative Representations","author":"Ge Guoqiang","year":"1993","unstructured":"Guoqiang Ge. 1993. Algorithms Related to Multiplicative Representations. Ph.D. Dissertation. University of California, Berkeley."},{"key":"e_1_3_3_19_2","unstructured":"Google AI Quantum team. 2018. (2018). Retrieved from https:\/\/github.com\/quantumlib\/Cirq. Accessed December 2020."},{"key":"e_1_3_3_20_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.laa.2018.01.002"},{"key":"e_1_3_3_21_2","doi-asserted-by":"publisher","DOI":"10.1145\/358886.358892"},{"key":"e_1_3_3_22_2","doi-asserted-by":"publisher","DOI":"10.1145\/3208102"},{"key":"e_1_3_3_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/360248.360251"},{"key":"e_1_3_3_24_2","doi-asserted-by":"publisher","DOI":"10.1007\/BF01565439"},{"key":"e_1_3_3_25_2","doi-asserted-by":"publisher","DOI":"10.1145\/800125.804055"},{"key":"e_1_3_3_26_2","doi-asserted-by":"publisher","DOI":"10.1109\/SFCS.1979.38"},{"key":"e_1_3_3_27_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-70594-9_11"},{"key":"e_1_3_3_28_2","doi-asserted-by":"publisher","DOI":"10.1103\/PhysRevA.89.042338"},{"key":"e_1_3_3_29_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44584-6_33"},{"key":"e_1_3_3_30_2","first-page":"29","volume-title":"Proceedings of the 45th ACM SIGPLAN Symposium on Principles of Programming Languages.","author":"Li Yangjia","year":"2017","unstructured":"Yangjia Li and Mingsheng Ying. 2017. Algorithmic analysis of termination problems for quantum programs. In Proceedings of the 45th ACM SIGPLAN Symposium on Principles of Programming Languages.ACM, 29 pages."},{"key":"e_1_3_3_31_2","doi-asserted-by":"publisher","DOI":"10.1007\/s00236-013-0185-3"},{"key":"e_1_3_3_32_2","doi-asserted-by":"publisher","DOI":"10.1145\/3531130.3533327"},{"key":"e_1_3_3_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/3158121"},{"key":"e_1_3_3_34_2","volume-title":"Quantum Computation and Quantum Information: 10th Anniversary Edition (10th. ed.)","author":"Nielsen Michael A.","year":"2011","unstructured":"Michael A. Nielsen and Isaac L. Chuang. 2011. Quantum Computation and Quantum Information: 10th Anniversary Edition (10th. ed.). Cambridge University Press."},{"key":"e_1_3_3_35_2","unstructured":"Federico Olmedo and Alejandro D\u00edaz-Caro. 2019. Runtime analysis of quantum programs: A formal approach. arXiv:1911.11247. Retrieved from https:\/\/arxiv.org\/abs\/1911.11247."},{"key":"e_1_3_3_36_2","doi-asserted-by":"publisher","DOI":"10.5555\/2685179.2685181"},{"key":"e_1_3_3_37_2","doi-asserted-by":"publisher","DOI":"10.1006\/jabr.1997.7140"},{"key":"e_1_3_3_38_2","doi-asserted-by":"publisher","DOI":"10.22331\/q-2018-08-06-79"},{"key":"e_1_3_3_39_2","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129504004256"},{"key":"e_1_3_3_40_2","doi-asserted-by":"publisher","DOI":"10.1137\/0213021"},{"key":"e_1_3_3_41_2","doi-asserted-by":"publisher","DOI":"10.2140\/ant.2019.13.1501"},{"key":"e_1_3_3_42_2","doi-asserted-by":"publisher","DOI":"10.1145\/3183895.3183901"},{"key":"e_1_3_3_43_2","unstructured":"D. Wecker and K. M. Svore. 2014. LIQUi \\(|\\rangle\\) : A software design architecture and domain-specific language for quantum computing. arXiv:1402.4467. Retrieved from https:\/\/arxiv.org\/abs\/1402.4467."},{"key":"e_1_3_3_44_2","doi-asserted-by":"publisher","DOI":"10.5555\/3179320.3179329"},{"key":"e_1_3_3_45_2","doi-asserted-by":"publisher","DOI":"10.1145\/3527316"},{"key":"e_1_3_3_46_2","doi-asserted-by":"publisher","DOI":"10.1145\/2049706.2049708"},{"key":"e_1_3_3_47_2","volume-title":"Foundations of Quantum Programming","author":"Ying Mingsheng","year":"2016","unstructured":"Mingsheng Ying. 2016. Foundations of Quantum Programming. Morgan Kaufmann."},{"key":"e_1_3_3_48_2","doi-asserted-by":"publisher","DOI":"10.1007\/s00236-010-0117-4"},{"key":"e_1_3_3_49_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2010.94"},{"key":"e_1_3_3_50_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2013.03.016"},{"key":"e_1_3_3_51_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-40184-8_24"},{"key":"e_1_3_3_52_2","unstructured":"Nengkun Yu. 2019. Quantum Temporal Logic. arXiv:1908.00158. Retrieved from https:\/\/arxiv.org\/abs\/1908.00158."},{"key":"e_1_3_3_53_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-22308-2_2"},{"key":"e_1_3_3_54_2","doi-asserted-by":"publisher","DOI":"10.1145\/3453483.3454061"},{"key":"e_1_3_3_55_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-32940-1_7"},{"key":"e_1_3_3_56_2","unstructured":"Jianjun Zhao. 2020. Quantum Software Engineering: Landscapes and Horizons. arXiv:2007.07047. Retrieved from https:\/\/arxiv.org\/abs\/2007.07047."},{"key":"e_1_3_3_57_2","doi-asserted-by":"publisher","DOI":"10.1145\/3314221.3314584"}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3587154","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3587154","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T16:47:15Z","timestamp":1750178835000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3587154"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,5,26]]},"references-count":56,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2023,10,31]]}},"alternative-id":["10.1145\/3587154"],"URL":"https:\/\/doi.org\/10.1145\/3587154","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"value":"1049-331X","type":"print"},{"value":"1557-7392","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,5,26]]},"assertion":[{"value":"2020-12-29","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2023-02-07","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2023-05-26","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}