TensorFlow Quantum
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
TensorFlow Quantum (TFQ) 是一个用于量子机器学习的 Python 框架。作为一种应用框架,TFQ 允许量子算法研究员和 ML 应用研究员在 TensorFlow 内充分利用 Google 的量子计算框架。
TensorFlow Quantum 侧重于量子数据和构建混合量子经典模型。它提供了可将在 Cirq 中设计的量子算法和逻辑与 TensorFlow 相融合的工具。要有效使用 TensorFlow Quantum,需要对量子计算有基本的了解。
要开始使用 TensorFlow Quantum,请参阅安装指南并通读一些可运行的笔记本教程。
设计
TensorFlow Quantum 实现了将 TensorFlow 与量子计算硬件集成所需的组件。为此,TensorFlow Quantum 引入了两个数据类型基元:
- 量子电路 - 表示 TensorFlow 中 Cirq 定义的量子电路。创建大小不同的电路批次,类似于不同的实值数据点的批次。
- Pauli 和 - 表示 Cirq 中定义的 Pauli 算子张量积的线性组合。像电路一样,创建大小不同的算子批次。
利用这些基元来表示量子电路,TensorFlow Quantum 提供以下运算:
- 从电路批次的输出分布中采样。
- 基于电路批次计算 Pauli 和批次的期望值。TFQ 实现了与反向传播兼容的梯度计算。
- 模拟电路和状态批次。虽然在现实世界中直接检查整个量子电路的所有量子态振幅的效率极低,但状态模拟可以帮助研究员了解量子电路如何将状态映射到接近精确的精度水平。
在设计指南中阅读有关 TensorFlow Quantum 实现的更多信息。
报告问题
使用 TensorFlow Quantum 问题跟踪器报告错误或提交功能请求。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-06-07。
[null,null,["最后更新时间 (UTC):2022-06-07。"],[],[],null,["# TensorFlow Quantum\n\n\u003cbr /\u003e\n\nTensorFlow Quantum (TFQ) is a Python framework for\n[quantum machine learning](/quantum/concepts). As an application framework, TFQ allows\nquantum algorithm researchers and ML application researchers to leverage\nGoogle's quantum computing frameworks, all from within TensorFlow.\n\nTensorFlow Quantum focuses on *quantum data* and building *hybrid\nquantum-classical models* . It provides tools to interleave quantum algorithms\nand logic designed in\n[Cirq](https://github.com/quantumlib/Cirq) with\nTensorFlow. A basic understanding of quantum computing is required to\neffectively use TensorFlow Quantum.\n\nTo get started with TensorFlow Quantum, see the [install guide](/quantum/install) and\nread through some of the runnable\n[notebook tutorials](./tutorials/hello_many_worlds).\n\nDesign\n------\n\nTensorFlow Quantum implements the components needed to integrate TensorFlow with\nquantum computing hardware. To that end, TensorFlow Quantum introduces two\ndatatype primitives:\n\n- *Quantum circuit* ---This represents a Cirq-defined quantum circuit within TensorFlow. Create batches of circuits of varying size, similar to batches of different real-valued datapoints.\n- *Pauli sum* ---Represent linear combinations of tensor products of Pauli operators defined in Cirq. Like circuits, create batches of operators of varying size.\n\nUsing these primitives to represent quantum circuits, TensorFlow Quantum\nprovides the following operations:\n\n- Sample from output distributions of batches of circuits.\n- Calculate the expectation value of batches of Pauli sums on batches of circuits. TFQ implements backpropagation-compatible gradient calculation.\n- Simulate batches of circuits and states. While inspecting all quantum state amplitudes directly throughout a quantum circuit is inefficient at scale in the real world, state simulation can help researchers understand how a quantum circuit maps states to a near exact level of precision.\n\nRead more about the TensorFlow Quantum implementation in the\n[design guide](/quantum/design).\n\nReport issues\n-------------\n\nReport bugs or feature requests using the\n[TensorFlow Quantum issue tracker](https://github.com/tensorflow/quantum/issues)."]]