Quantum 开发工具包 (QDK) 入门Get started with the Quantum Development Kit (QDK)

欢迎使用 Microsoft Quantum 开发工具包!Welcome to the Microsoft Quantum Development Kit!
QDK 包含使用 Q#(一种专为量子应用程序开发而设计的编程语言)构建你自己的量子程序和试验所需的所有工具。The QDK contains all the tools you'll need to build your own quantum programs and experiments with Q#, a programming language designed specifically for quantum application development.

若要开始使用,可以转到 QDK 安装指南To jump right in, you can head over to the QDK installation guide. 然后,可以按指南在 Windows、Linux 或 MacOS 计算机上安装 Quantum 开发工具包,以便编写你自己的量子程序。You'll then be guided through installing the Quantum Development Kit on Windows, Linux, or MacOS machines so that you can write your own quantum programs.

如果不想立即开始编写代码,但想要详细了解量子计算和 Q#,建议继续阅读本文,了解可以使用的资源。If you don't feel quite ready to start coding, but want to learn more about quantum computing and Q#, we encourage you to still read this article to get a feel for the resources at your disposal. 关于量子计算的五个问题部分,可以找到准确指向你要查找的内容的链接!In the five questions about quantum computing section, you'll find links to precisely what you're looking for!

编程入门Get started programming

Quantum 开发工具包提供了许多方法,方便你了解如何使用 Q# 开发量子程序。The Quantum Development Kit provides many ways to learn how to develop a quantum program with Q#. 若要快速掌握量子计算的内容,可以试用快速入门To get up and running with the power of quantum, you can try out our quickstarts:

  • 量子随机数生成器是“Q# Hello World”样式的应用程序,它简单介绍了量子概念,让你在数分钟内构建并运行一个量子应用程序。The quantum random number generator is a "Q# Hello World" style application, providing a brief introduction to quantum concepts while letting you build and run a quantum application in minutes.
  • Q# 的量子基础知识指导你编写一个 Q# 程序,用于演示量子编程的一些基本概念。Quantum basics with Q# guides you on writing a Q# program that demonstrates some of the foundational concepts of quantum programming. 如果尚未做好开始编码的准备,你仍然可以在不安装 QDK 的情况下继续阅读本指南,大致了解 Q# 编程语言和基本的量子计算概念。If you are not ready to start coding, you can still follow along without installing the QDK and get an overview of the Q# programming language and the first concepts of quantum computing.
  • Grover 搜索算法提供了 Q# 程序示例,让你了解 Q# 以抽象低级量子操作的方式表达量子算法的强大功能。Grover’s search algorithm offers an example of a Q# program to get an idea of the power of Q# for expressing the quantum algorithm in a way that abstracts the low-level quantum operations. 本快速入门指导你使用各种编程环境(Python 主机、.NET 语言主机、Visual Studio 或 Visual Studio Code)来开发程序。This quickstart guides you through developing the program in a variety programming environments (with a Python host or with .NET language host and with Visual Studio or Visual Studio Code).

深入学习Learning further

  • 若要深入了解 Q# 编程,请查看量子 Katas - 一系列自控进度的编程练习,介绍了如何通过 Q# 中的编程练习进行量子计算。If you want to dive deeper into Q# programming, check out the Quantum Katas - a collection of self-paced programming exercises that introduce you to quantum computing via programming exercises in Q#. 其中的许多 Katas 也作为 Q# Notebooks 提供。Many of these katas are also available as Q# Notebooks.
  • 我们的示例存储库展示了多个示例,这些示例介绍如何使用 Q# 编写量子程序。Our samples repository showcases multiple examples on how to write quantum programs using Q#. 这其中的大多数示例都使用开源量子库编写,包括我们的标准库和化学库(详见下文)。Most of these samples are written using our open-source quantum libraries, including our standard and chemistry libraries (more info on these below).

关于量子计算的五个问题Five questions about quantum computing

如果你是量子开发方面的新手,可能会觉得这些问题有点令人头疼。If you are a newcomer to quantum development, we know that this can all seem a bit daunting. 我们提供了相关资源,帮助你开始了解量子计算。We've provided resources to help you get started with learning about quantum computing. 在这些简短文章的帮助下,我们相信你会渴望立即开始编程。With the help of these short articles, we're confident you'll be eager to get started programming in no time.

Quantum 开发工具包文档Quantum Development Kit Documentation

当前文档包括以下额外主题。The current documentation includes the following additional topics.

使用 Q#Using Q#

  • 量子开发技术详述了用于在 Q# 中创建量子程序的核心概念。Quantum development techniques specifies the core concepts used to create quantum programs in Q#. 主题包括文件结构、操作和函数、量子位的使用,以及一些高级主题。Topics include file structures, operations and functions, working with qubits, and some advanced topics.
  • Q# 语言参考详述了 Q# 语言,具体内容包括:类型模型、表达式、语句和编译器使用。Q# language reference details the Q# language including the type model, expressions, statements, and compiler use.
  • 量子模拟器和主机应用程序介绍了如何执行量子算法、可用的量子计算机,以及如何为量子程序编写非 Q# 驱动程序。Quantum simulators and host applications describes how quantum algorithms are executed, what quantum machines are available, and how to write a non-Q# driver for the quantum program.

Q# 库Q# libraries

  • Q# 标准库介绍了支持经典语言控件要求和 Q# 量子算法的操作和函数。Q# standard libraries describes the operations and functions that support both the classical language control requirement and the Q# quantum algorithms. 主题包括控制流、数据结构、错误更正、测试和调试。Topics include control flow, data structures, error correction, testing, and debugging.
  • Q# 化学库介绍了支持量子化学模拟(量子计算的关键应用)的操作和函数。Q# chemistry library describes the operations and functions that support quantum chemistry simulation---a critical application of quantum computing. 主题包括:模拟 Hamiltonian 动力学、量子相位估计,等等。Topics include simulating Hamiltonian dynamics and quantum phase estimation, among others.
  • Q# 数字库介绍的操作和函数支持以目标计算机的本机操作来表达复杂的算术函数。Q# numerics library describes the operations and functions that support expressing complicated arithmetic functions in terms of the native operations of target machines.
  • Q# 库参考包含按命名空间划分的库实体的参考信息。Q# library reference contains reference information about library entities by namespace.

常规量子计算General quantum computing

  • 量子计算概念包含下述主题:线性代数与量子计算的相关性、量子位的性质和使用、如何读取量子线路,等等。Quantum computing concepts includes topics such as the relevance of linear algebra to quantum computing, the nature and use of a qubit, how to read a quantum circuit, and more.
  • 量子计算术语表是一个术语表,包含一些特定于量子计算和程序开发的重要术语。Quantum computing glossary is a glossary of some crucial terms specific to quantum computing and program development. 如果你不熟悉此领域,则可在阅读我们的文档时参考它。If you are new to the field, this could be a handy reference as you read through our documentation.
  • 延伸阅读包含经过甄选的参考文档,深入介绍了各种量子计算主题。Further reading contains specially selected references for in-depth coverage of quantum computing topics.

其他信息Additional info

加入 Q# 开源社区Be a part of the Q# Open-Source Community

Quantum 开发工具包是一种开源开发工具包,目的是方便开发人员进行量子计算,解决世界上最紧迫的一些难题。The Quantum Development Kit is an open-source development kit that empowers developers to make quantum computing more accessible to all so that we can solve some of the world's most pressing challenges. 需要开源软件的学术机构将能够部署 Q# 进行量子学习和开发。Academic institutions who require open-source software will be able to deploy Q# for their quantum learning and development. 将开发工具包开源也方便开发人员和领域专家通过其代码来贡献各种改进和创意。Open-sourcing the development kit also empowers developers and domain experts an opportunity to contribute improvements and ideas via their code.

你对 Quantum 开发工具包的反馈、参与和贡献很重要。Your feedback, participation and contributions to the Quantum Development Kit is important. 如需详细了解 Quantum 开发工具包源、提供反馈、了解如何参与这个不断发展的量子开发平台的决策并贡献力量,请参阅为 Quantum 开发工具包做贡献To learn more about the Quantum Development Kit sources, provide feedback, and find out how you can participate in the decisions and contribute to this growing quantum development platform, see Contributing to the Quantum Development Kit.

有关 Microsoft 推出的量子计算计划的更多常规信息,请参阅 Microsoft QuantumIf you'd like more general information about Microsoft's quantum computing initiative, see Microsoft Quantum.