qalgora-Q Docs Hub量子文档 ✦ Ask AI✦ 问问文档

Welcome to qalgora-Q

A conceptual overview of a hybrid-quantum programming and co-simulation platform for CPUs, local simulators, planned GPU backends, and vendor-QPU workflows under one programming model. The platform is still early-stage, so these docs lay out the design and direction more than finished, production-ready software.

140+documentation / demo pages
15+documented hardware profiles & simulated backend configs
30+educational algorithm walkthroughs
EN / 中文bilingual docs
What this is
qalgora-Q is an educational/reference framework for hybrid quantum-classical workflows — not production software.

The current open reference build is a CPU-only NumPy statevector simulator; GPU builds, Docker images, C++ packages, cloud backends, and native QPU submission are planned interfaces or require external vendor SDKs.

Current capability status

CapabilityStatus
CPU-only NumPy statevector simulatorAvailable now
Core gate-model examplesAvailable in the reference build
Browser playgroundAvailable
GPU backendPlanned — no public package or benchmark yet
PyPI wheel / Docker imagePlanned — not yet published
C++ API / packageDocumented or planned — not yet shipped as a public package
Cloud and hardware targetsAdaptation / export workflows only
Native physical-QPU submissionNot built in
Performance claimsTheoretical expectations until public benchmarks are released

Browse by topic

Featured algorithms

Preparing for vendor hardware workflows

The kernel abstraction is designed to align with major quantum-cloud instruction models. In the current reference build, this means simulation-level adaptation and export-oriented workflows. Submitting jobs to physical QPUs requires external vendor SDKs, credentials, and hardware-specific compilation; qalgora-Q does not currently provide native QPU submission.

The specs below are vendor-reported / publicly announced figures as of the documentation review date; they are shown for workflow orientation only — not qalgora-Q native execution targets — and may change as vendors update their hardware. Likewise, any algorithmic “speedups” in these docs are theoretical / query-complexity statements unless benchmarked on a concrete backend.

Hello, quantum world

A minimal Bell-state kernel in Python:

import qalgora

@qalgora.kernel
def bell():
    q = qalgora.qvector(2)
    h(q[0])
    x.ctrl(q[0], q[1])   # controlled-X (CNOT): control q[0], target q[1]
    mz(q)

result = qalgora.sample(bell, shots_count=1000)
print(result)  # expected distribution: roughly 50% "00" and 50% "11"
Note
qalgora-Q is a unified hybrid-quantum programming framework. This documentation covers installation, the kernel programming model, examples, and the documented APIs — in English and 中文. The example above is for circuit demonstration only; deploying to real hardware additionally requires noise-model configuration, exception handling, and resource cleanup.
Disclaimer
  1. qalgora-Q is a prototype demo framework for learning quantum algorithms — not production-grade industrial software. A runnable pure-NumPy reference build is provided so the examples execute; the packaged distributions (PyPI wheel, GPU build, Docker image, C++ packages) are planned and not yet published.
  2. Its multi-hardware compatibility covers simulation-level instruction-set adaptation only; it does not support native task submission directly to physical quantum processors.
  3. All performance statements are theoretical expectations; no public benchmark data is available to verify them.
  4. For industrial quantum development, please use mature frameworks such as Qiskit, Cirq, PennyLane, CUDA-Q, or pyQPanda / MindQuantum.

Attribution: qalgora-Q's programming model is inspired by NVIDIA CUDA-Q (Apache-2.0); the kernel / qvector / control-flow idioms intentionally align with it for interoperability.

欢迎使用 qalgora-Q

一份混合量子编程与协同仿真平台的概念总览:目标是在统一编程模型下描述 CPU、本地模拟器、规划中的 GPU 后端和厂商 QPU 工作流。平台仍处于早期阶段,本文档更多呈现整体设计与方向,而非已完成的生产级软件。

140+文档/演示页面
15+文档化硬件配置与仿真后端配置
30+教学型算法讲解
EN / 中文中英双语文档
这是什么
qalgora-Q 当前是面向混合量子-经典工作流的教学/参考框架,并非工业级生产软件。

现有开源参考实现是 CPU-only 的 NumPy 态矢量模拟器;GPU 版本、Docker 镜像、C++ 包、云端后端和原生 QPU 提交能力属于规划接口,或需外部厂商 SDK 支持。

当前能力状态

能力状态
CPU-only NumPy 态矢量模拟器现已可用
核心门模型示例参考实现已支持
浏览器在线模拟已可用
GPU 后端规划中——尚无公开包或基准测试
PyPI wheel / Docker 镜像规划中——尚未发布
C++ API / 包文档化或规划中——尚未作为公开包发布
云端与硬件目标仅适配/导出工作流
原生真实 QPU 提交不支持
性能描述公开基准发布前均为理论预期

按主题浏览

精选算法

面向厂商硬件流程的适配准备

qalgora-Q 的内核抽象在设计上尽量对齐主流量子云的指令模型。当前参考实现主要覆盖仿真层面的适配与面向导出的工作流。提交到真实 QPU 仍需外部厂商 SDK、账号凭据和硬件特定编译;qalgora-Q 当前不提供原生 QPU 提交能力。

下列规格为截至本文档核对日期的供应商公开发布数据,仅用于工作流适配说明,不代表 qalgora-Q 可原生提交任务,且可能随厂商硬件更新而变化。同理,文档中任何算法“加速”在具体后端基准测试之前,均为理论/查询复杂度层面的陈述。

你好 量子世界

一个最简的 Bell 态内核(Python):

import qalgora

@qalgora.kernel
def bell():
    q = qalgora.qvector(2)
    h(q[0])
    x.ctrl(q[0], q[1])   # 受控 X 门(CNOT):控制位 q[0],目标位 q[1]
    mz(q)

result = qalgora.sample(bell, shots_count=1000)
print(result)  # 期望分布:约 50% 为 "00",约 50% 为 "11"
提示
qalgora-Q 是一套统一的混合量子编程框架。本文档涵盖安装、内核编程模型、示例与已文档化 API——中英双语。 上面的示例仅用于演示电路逻辑;要部署到真实硬件,还需补充噪声模型配置、异常处理与资源清理。
免责声明
  1. qalgora-Q 仅为面向量子算法学习的原型演示框架,并非工业级生产软件。我们提供一个可运行的纯 NumPy 参考实现,使文档示例都能跑通;打包发行版(PyPI wheel、GPU 版本、Docker 镜像、C++ 包)尚在规划中,暂未发布。
  2. 所谓多硬件兼容仅覆盖仿真层面的指令集适配,不支持直接向真实量子处理器原生提交任务。
  3. 所有性能描述均为理论预期,目前没有可供核验的公开基准测试数据。
  4. 工业级量子开发请选用 Qiskit、Cirq、PennyLane、CUDA-Q、pyQPanda / MindQuantum 等成熟框架。

来源致谢:qalgora-Q 的编程模型受 NVIDIA CUDA-Q(Apache-2.0)启发;kernel / qvector 与控制流写法有意与其保持一致以便互操作。