arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.10802cs.PLquant-ph
收藏

三种面向 Web 的量子编程语言解析器实现

Three Quantum Programming Language Parser Implementations for the Web

Marcus Edwards

AI总结:

本文用TypeScript为QASM、QMASM和Blackbird三种量子编程语言实现了首批Web兼容解析器,使它们能在无重型编译工具链的Web和移动环境中运行,促进采用与科研。

摘要:

自2017年起,IBM开发了一种专用于门模型量子计算的量子汇编(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的解析器实现,因此将这些语言带给了新的受众和新的运行时。这使得QMASM、QASM和Blackbird的解析和执行在无法访问重型编译工具链的Web和移动环境中成为可能,从而促进了采用和科学研究。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑