Compiling a Q# Subset to QASM 3.0 in TypeScript via a JSON Based IR
Marcus Edwards

TL;DR
This paper presents a TypeScript-based compiler toolchain that translates a subset of Q# quantum programming language into QASM 3.0, enabling web-compatible quantum program compilation with a custom lexer, parser, and compiler.
Contribution
The main novelty is implementing a Q# to QASM 3.0 compiler in TypeScript, facilitating web deployment and extending existing quantum compilation tools.
Findings
Successfully compiles a subset of Q# to QASM 3.0
Works with various Q# programs and compares favorably to existing tools
Enables quantum programming in web environments
Abstract
We implement a compile toolchain from Q# to QASM 3.0 including a full-featured lexer and parser implementation, as well as a compiler that supports a subset of Q# features. The lexer, parser and compiler are shown to work with various input Q# programs and the implementation is compared against existing Q# compile tools. Unlike the Microsoft implementation of the official Q# compile toolchain, our implementation is written in TypeScript in order to port functionality to web environments.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMathematics, Computing, and Information Processing · Software Engineering and Design Patterns · Scientific Computing and Data Management
