Skip to main content

Statistical assertions for validating patterns and finding bugs in quantum programs

Author(s): Huang, Yipeng; Martonosi, Margaret

Download
To refer to this page use: http://arks.princeton.edu/ark:/88435/pr1bv7j
Full metadata record
DC FieldValueLanguage
dc.contributor.authorHuang, Yipeng-
dc.contributor.authorMartonosi, Margaret-
dc.date.accessioned2021-10-08T19:45:29Z-
dc.date.available2021-10-08T19:45:29Z-
dc.date.issued2019-06en_US
dc.identifier.citationHuang, Yipeng, and Margaret Martonosi. "Statistical assertions for validating patterns and finding bugs in quantum programs." Proceedings of the 46th International Symposium on Computer Architecture (2019): pp. 541-553. doi:10.1145/3307650.3322213en_US
dc.identifier.issn1063-6897-
dc.identifier.urihttps://yipenghuang.com/wp-content/uploads/2019/12/toppicks2020_paper22.pdf-
dc.identifier.urihttp://arks.princeton.edu/ark:/88435/pr1bv7j-
dc.description.abstractIn support of the growing interest in quantum computing experimentation, programmers need new tools to write quantum algorithms as program code. Compared to debugging classical programs, debugging quantum programs is difficult because programmers have limited ability to probe the internal states of quantum programs; those states are difficult to interpret even when observations exist; and programmers do not yet have guidelines for what to check for when building quantum programs. In this work, we present quantum program assertions based on statistical tests on classical observations. These allow programmers to decide if a quantum program state matches its expected value in one of classical, superposition, or entangled types of states. We extend an existing quantum programming language with the ability to specify quantum assertions, which our tool then checks in a quantum program simulator. We use these assertions to debug three benchmark quantum programs in factoring, search, and chemistry. We share what types of bugs are possible, and lay out a strategy for using quantum programming patterns to place assertions and prevent bugs.en_US
dc.format.extent541 - 553en_US
dc.language.isoen_USen_US
dc.relation.ispartofProceedings of the 46th International Symposium on Computer Architectureen_US
dc.rightsAuthor's manuscripten_US
dc.titleStatistical assertions for validating patterns and finding bugs in quantum programsen_US
dc.typeConference Articleen_US
dc.identifier.doi10.1145/3307650.3322213-
pu.type.symplectichttp://www.symplectic.co.uk/publications/atom-terms/1.0/conference-proceedingen_US

Files in This Item:
File Description SizeFormat 
StatAssertionsValidateQuantumPrograms.pdf236.82 kBAdobe PDFView/Download


Items in OAR@Princeton are protected by copyright, with all rights reserved, unless otherwise indicated.