We introduce dependently typed Proto-Quipper, or Proto-Quipper-D for short, an experimental quantum circuit programming language with linear dependent types. We give several examples to illustrate how linear dependent types can help in the construction of correct quantum circuits. Specifically, we show how dependent types enable programming families of circuits, and how dependent types solve the problem of type-safe uncomputation of garbage qubits. We also discuss other language features along the way.
翻译:我们引入了一种直线依赖型的实验量子电路编程语言。 我们举几个例子来说明线型依赖型能如何帮助构建正确的量子电路。 具体地说,我们展示了依赖型能如何帮助电路编程家庭编程线路,以及依赖型能如何解决垃圾qubit的类型安全不计算问题。 我们还在路上讨论了其他语言特征。