Notational Programming for Notebook Environments: A Case Study with Quantum Circuits

Ian Arawjo, Anthony DeArmas, Michael Roberts, Shrutarshi Basu and Tapan Parikh

Abstract

We articulate a vision for computer programming that includes pen-based computing, a paradigm we term notational programming. Notational programming blurs contexts: certain typewritten variables can be referenced in handwritten notation and vice-versa. To illustrate this paradigm, we developed an extension, Notate, to computational notebooks which allows users to open drawing canvases within lines of code. As a case study, we explore quantum programming and designed a notation, Qaw, that extends quantum circuit notation with abstraction features, such as variable-sized wire bundles and recursion. Results from a usability study with novices suggest that users find our core interaction of implicit cross-context references intuitive, but suggests further improvements to debugging infrastructure, interface design, and recognition rates. Throughout, we discuss questions raised by the notational paradigm, including a shift from ‘recognition’ of notations to ‘reconfiguration’ of practices and values around programming, and from ‘sketching’ to writing and drawing, or what we call ‘notating.’

Venue
UIST 2022
Volume
Proceedings of the 35th Annual ACM Symposium on User Interface Software and Technology
DOI
10.1145/3526113.3545619
PDF
https://dl.acm.org/doi/pdf/10.1145/3526113.3545619
Anthology ID
2022.uist.8

Cite

@inproceedings{arawjo-etal-2022-notational,
    title = {{Notational Programming for Notebook Environments: A Case Study with Quantum Circuits}},
    author = {Ian Arawjo and Anthony DeArmas and Michael Roberts and Shrutarshi Basu and Tapan Parikh},
    booktitle = {Proceedings of the 35th Annual ACM Symposium on User Interface Software and Technology},
    isbn = {9781450393201},
    year = {2022},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3526113.3545619},
    url = {https://doi.org/10.1145/3526113.3545619},
    abstract = {We articulate a vision for computer programming that includes pen-based computing, a paradigm we term notational programming. Notational programming blurs contexts: certain typewritten variables can be referenced in handwritten notation and vice-versa. To illustrate this paradigm, we developed an extension, Notate, to computational notebooks which allows users to open drawing canvases within lines of code. As a case study, we explore quantum programming and designed a notation, Qaw, that extends quantum circuit notation with abstraction features, such as variable-sized wire bundles and recursion. Results from a usability study with novices suggest that users find our core interaction of implicit cross-context references intuitive, but suggests further improvements to debugging infrastructure, interface design, and recognition rates. Throughout, we discuss questions raised by the notational paradigm, including a shift from ‘recognition’ of notations to ‘reconfiguration’ of practices and values around programming, and from ‘sketching’ to writing and drawing, or what we call ‘notating.’}
}