IBM has developed a quantum assembly (QASM) language particular to gate model quantum computing since 2017 [CBSG17]. Version 3.0 which adds timing, pulse control, and gate modifiers is currently undergoing finalization in 2023 [CJA+21]. In a similar vein, Pakin of Los Alamos National Laboratory published a quantum macro assembler (QMASM) for D-Wave quantum annealers in 2016 [Pak16]. This assembler specifically targets quantum annealers like D-Wave's. A comparable technology that targets continuous-variable (CV) quantum computing is the Blackbird language developed by Xanadu since 2018 [KIQ+19]. We implement parsers for each of these languages in TypeScript with a singular approach. In the cases of Blackbird and QMASM these are the first parser implementations that are web compatible and so bring these languages to a new audience and to new runtimes. This makes the parsing and execution of QMASM, QASM and Blackbird possible in web and mobile environments that don't have access to heavy compile toolchains, enabling adoption and scientific research.
翻译:IBM自2017年起开发了针对门模型量子计算的量子汇编语言(QASM)[CBSG17]。目前,添加了时序、脉冲控制和门修饰符的3.0版本已于2023年进入最终定稿阶段[CJA+21]。类似地,洛斯阿拉莫斯国家实验室的Pakin于2016年为D-Wave量子退火器发布了量子宏汇编器(QMASM)[Pak16]。该汇编器专门针对D-Wave等量子退火器。针对连续变量(CV)量子计算的可比技术是Xanadu自2018年以来开发的Blackbird语言[KIQ+19]。我们采用统一方法用TypeScript实现了每种语言的解析器。对于Blackbird和QMASM,这是首个兼容Web的解析器实现,从而将这些语言推广到新的用户群体和运行时环境。这使得在无法使用重型编译工具链的Web和移动环境中,能够解析和执行QMASM、QASM和Blackbird程序,从而推动相关技术的应用和科学研究。