| Name | extendedstim JSON |
| Version |
0.1.2
JSON |
| download |
| home_page | None |
| Summary | ExtendedStim: tools for testing quantum circuits, quantum error-correction codes. |
| upload_time | 2025-10-29 06:08:16 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.12 |
| license | MIT License
Copyright (c) 2025 Your Name
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
| keywords |
quantum physics
quantum error-correction codes
physics
quantum circuits
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
build
twine
numpy
ldpc
scipy
matplotlib
qutip
galois
networkx
qiskit
stim
stimbposd
PyMatching
sinter
mip
setuptools
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# ExtendedStim: A Python Package Addressing both Fermionic and Bosonic Quantum Error-Correction Simultaneously
[](LICENSE)
[](https://www.python.org/)
[](docs/)
本程序基于Python 3.12+开发,主要用于量子纠错码和量子线路的构造与测试。
## 🔨 1 项目依赖
- [QuTiP](https://qutip.org/) - 量子工具包
- [Stim](https://github.com/quantumlib/Stim) - 量子纠错模拟器
- [Stimbposd](https://github.com/quantumlib/Stim/blob/main/docs/bposd.md) - 基于Stim的BPOSD译码器
- [Galois](https://galois.readthedocs.io/) - 提供$\mathbb{F}_2$上的代数计算
- [NumPy](https://numpy.org/) - 数值计算库
- [SciPy](https://scipy.org/) - 科学计算库
- [Matplotlib](https://matplotlib.org/) - 绘图库
- [Qiskit](https://qiskit.org/) - 提供量子线路图的绘制
- [Mip](https://www.mipengine.org/) - 整数规划求解器,用于code distance的计算
## 📁 2 项目结构
```
├── extendedstim/ # 核心代码目录
│ ├── Circuit/ # 量子线路相关模块
│ │ ├── Circuit.py # 量子线路实现
│ │ └── __init__.py # 模块初始化文件
│ ├── Code/ # 量子码和线性码模块
│ │ ├── LinearCode/ # 线性码实现
│ │ │ ├── BicycleCode.py # 自行车码实现
│ │ │ ├── LinearCode.py # 线性码基类
│ │ │ └── __init__.py # 模块初始化文件
│ │ ├── QuantumCode/ # 量子码实现
│ │ │ ├── LatticeSurgery.py # 格点手术
│ │ │ ├── MajoranaCSSCode.py # Majorana CSS码
│ │ │ ├── MajoranaCode.py # Majorana码
│ │ │ ├── PauliCSSCode.py # Pauli CSS码
│ │ │ ├── PauliCode.py # Pauli码
│ │ │ ├── QuantumCSSCode.py # 量子CSS码
│ │ │ ├── QuantumCode.py # 量子码基类
│ │ │ └── __init__.py # 模块初始化文件
│ │ └── __init__.py # 模块初始化文件
│ ├── Math/ # 数学工具模块
│ │ ├── BinaryArray.py # 二进制数组操作
│ │ ├── Graph.py # 图论工具
│ │ └── __init__.py # 模块初始化文件
│ └── Physics/ # 物理操作模块
│ ├── MajoranaOperator.py # Majorana算符
│ ├── Operator.py # 算符基类
│ ├── PauliOperator.py # Pauli算符
│ └── __init__.py # 模块初始化文件
├── .git/ # Git版本控制
├── .idea/ # IDE配置文件
└── README.md # 项目说明文档
```
## 📖 3 基本工作流
### 3.1 计算code parameters
1. 构造量子纠错码
2. 计算量子纠错码的code parameters
### 3.2 计算logical error rate
1. 构造量子线路
2. 执行Monte-Carlo模拟,对比预测正确与否得到logical error rate
## 📄 4 许可证
本项目采用MIT许可证 - 查看 [LICENSE](LICENSE) 文件了解详情。
## 📞 5 联系方式
- **作者**: Moke
- **邮箱**: Moke2001@whu.edu.cn
- **地址**: 北京市海淀区清华大学蒙民伟科技楼S219
- **电话**: +86 130-3373-6868
Raw data
{
"_id": null,
"home_page": null,
"name": "extendedstim",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "quantum physics, quantum error-correction codes, physics, quantum circuits",
"author": null,
"author_email": "Moke <moke2001@whu.edu.cn>",
"download_url": "https://files.pythonhosted.org/packages/a8/17/af9ed325f15d53fe6969e62bea31a6380a3e42d11bdbd4e01a0c99626054/extendedstim-0.1.2.tar.gz",
"platform": null,
"description": "# ExtendedStim: A Python Package Addressing both Fermionic and Bosonic Quantum Error-Correction Simultaneously\r\n\r\n[](LICENSE)\r\n[](https://www.python.org/)\r\n[](docs/)\r\n\r\n\u672c\u7a0b\u5e8f\u57fa\u4e8ePython 3.12+\u5f00\u53d1\uff0c\u4e3b\u8981\u7528\u4e8e\u91cf\u5b50\u7ea0\u9519\u7801\u548c\u91cf\u5b50\u7ebf\u8def\u7684\u6784\u9020\u4e0e\u6d4b\u8bd5\u3002\r\n\r\n## \ud83d\udd28 1 \u9879\u76ee\u4f9d\u8d56\r\n\r\n- [QuTiP](https://qutip.org/) - \u91cf\u5b50\u5de5\u5177\u5305\r\n- [Stim](https://github.com/quantumlib/Stim) - \u91cf\u5b50\u7ea0\u9519\u6a21\u62df\u5668\r\n- [Stimbposd](https://github.com/quantumlib/Stim/blob/main/docs/bposd.md) - \u57fa\u4e8eStim\u7684BPOSD\u8bd1\u7801\u5668\r\n- [Galois](https://galois.readthedocs.io/) - \u63d0\u4f9b$\\mathbb{F}_2$\u4e0a\u7684\u4ee3\u6570\u8ba1\u7b97\r\n- [NumPy](https://numpy.org/) - \u6570\u503c\u8ba1\u7b97\u5e93\r\n- [SciPy](https://scipy.org/) - \u79d1\u5b66\u8ba1\u7b97\u5e93\r\n- [Matplotlib](https://matplotlib.org/) - \u7ed8\u56fe\u5e93\r\n- [Qiskit](https://qiskit.org/) - \u63d0\u4f9b\u91cf\u5b50\u7ebf\u8def\u56fe\u7684\u7ed8\u5236\r\n- [Mip](https://www.mipengine.org/) - \u6574\u6570\u89c4\u5212\u6c42\u89e3\u5668\uff0c\u7528\u4e8ecode distance\u7684\u8ba1\u7b97\r\n\r\n## \ud83d\udcc1 2 \u9879\u76ee\u7ed3\u6784\r\n\r\n```\r\n\u251c\u2500\u2500 extendedstim/ # \u6838\u5fc3\u4ee3\u7801\u76ee\u5f55\r\n\u2502 \u251c\u2500\u2500 Circuit/ # \u91cf\u5b50\u7ebf\u8def\u76f8\u5173\u6a21\u5757\r\n\u2502 \u2502 \u251c\u2500\u2500 Circuit.py # \u91cf\u5b50\u7ebf\u8def\u5b9e\u73b0\r\n\u2502 \u2502 \u2514\u2500\u2500 __init__.py # \u6a21\u5757\u521d\u59cb\u5316\u6587\u4ef6\r\n\u2502 \u251c\u2500\u2500 Code/ # \u91cf\u5b50\u7801\u548c\u7ebf\u6027\u7801\u6a21\u5757\r\n\u2502 \u2502 \u251c\u2500\u2500 LinearCode/ # \u7ebf\u6027\u7801\u5b9e\u73b0\r\n\u2502 \u2502 \u2502 \u251c\u2500\u2500 BicycleCode.py # \u81ea\u884c\u8f66\u7801\u5b9e\u73b0\r\n\u2502 \u2502 \u2502 \u251c\u2500\u2500 LinearCode.py # \u7ebf\u6027\u7801\u57fa\u7c7b\r\n\u2502 \u2502 \u2502 \u2514\u2500\u2500 __init__.py # \u6a21\u5757\u521d\u59cb\u5316\u6587\u4ef6\r\n\u2502 \u2502 \u251c\u2500\u2500 QuantumCode/ # \u91cf\u5b50\u7801\u5b9e\u73b0\r\n\u2502 \u2502 \u2502 \u251c\u2500\u2500 LatticeSurgery.py # \u683c\u70b9\u624b\u672f\r\n\u2502 \u2502 \u2502 \u251c\u2500\u2500 MajoranaCSSCode.py # Majorana CSS\u7801\r\n\u2502 \u2502 \u2502 \u251c\u2500\u2500 MajoranaCode.py # Majorana\u7801\r\n\u2502 \u2502 \u2502 \u251c\u2500\u2500 PauliCSSCode.py # Pauli CSS\u7801\r\n\u2502 \u2502 \u2502 \u251c\u2500\u2500 PauliCode.py # Pauli\u7801\r\n\u2502 \u2502 \u2502 \u251c\u2500\u2500 QuantumCSSCode.py # \u91cf\u5b50CSS\u7801\r\n\u2502 \u2502 \u2502 \u251c\u2500\u2500 QuantumCode.py # \u91cf\u5b50\u7801\u57fa\u7c7b\r\n\u2502 \u2502 \u2502 \u2514\u2500\u2500 __init__.py # \u6a21\u5757\u521d\u59cb\u5316\u6587\u4ef6\r\n\u2502 \u2502 \u2514\u2500\u2500 __init__.py # \u6a21\u5757\u521d\u59cb\u5316\u6587\u4ef6\r\n\u2502 \u251c\u2500\u2500 Math/ # \u6570\u5b66\u5de5\u5177\u6a21\u5757\r\n\u2502 \u2502 \u251c\u2500\u2500 BinaryArray.py # \u4e8c\u8fdb\u5236\u6570\u7ec4\u64cd\u4f5c\r\n\u2502 \u2502 \u251c\u2500\u2500 Graph.py # \u56fe\u8bba\u5de5\u5177\r\n\u2502 \u2502 \u2514\u2500\u2500 __init__.py # \u6a21\u5757\u521d\u59cb\u5316\u6587\u4ef6\r\n\u2502 \u2514\u2500\u2500 Physics/ # \u7269\u7406\u64cd\u4f5c\u6a21\u5757\r\n\u2502 \u251c\u2500\u2500 MajoranaOperator.py # Majorana\u7b97\u7b26\r\n\u2502 \u251c\u2500\u2500 Operator.py # \u7b97\u7b26\u57fa\u7c7b\r\n\u2502 \u251c\u2500\u2500 PauliOperator.py # Pauli\u7b97\u7b26\r\n\u2502 \u2514\u2500\u2500 __init__.py # \u6a21\u5757\u521d\u59cb\u5316\u6587\u4ef6\r\n\u251c\u2500\u2500 .git/ # Git\u7248\u672c\u63a7\u5236\r\n\u251c\u2500\u2500 .idea/ # IDE\u914d\u7f6e\u6587\u4ef6\r\n\u2514\u2500\u2500 README.md # \u9879\u76ee\u8bf4\u660e\u6587\u6863\r\n```\r\n\r\n## \ud83d\udcd6 3 \u57fa\u672c\u5de5\u4f5c\u6d41\r\n\r\n### 3.1 \u8ba1\u7b97code parameters\r\n\r\n1. \u6784\u9020\u91cf\u5b50\u7ea0\u9519\u7801\r\n2. \u8ba1\u7b97\u91cf\u5b50\u7ea0\u9519\u7801\u7684code parameters\r\n\r\n### 3.2 \u8ba1\u7b97logical error rate\r\n\r\n1. \u6784\u9020\u91cf\u5b50\u7ebf\u8def\r\n2. \u6267\u884cMonte-Carlo\u6a21\u62df\uff0c\u5bf9\u6bd4\u9884\u6d4b\u6b63\u786e\u4e0e\u5426\u5f97\u5230logical error rate\r\n\r\n## \ud83d\udcc4 4 \u8bb8\u53ef\u8bc1\r\n\r\n\u672c\u9879\u76ee\u91c7\u7528MIT\u8bb8\u53ef\u8bc1 - \u67e5\u770b [LICENSE](LICENSE) \u6587\u4ef6\u4e86\u89e3\u8be6\u60c5\u3002\r\n\r\n## \ud83d\udcde 5 \u8054\u7cfb\u65b9\u5f0f\r\n\r\n- **\u4f5c\u8005**: Moke\r\n- **\u90ae\u7bb1**: Moke2001@whu.edu.cn\r\n- **\u5730\u5740**: \u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u6e05\u534e\u5927\u5b66\u8499\u6c11\u4f1f\u79d1\u6280\u697cS219\r\n- **\u7535\u8bdd**: +86 130-3373-6868\r\n",
"bugtrack_url": null,
"license": "MIT License\r\n \r\n Copyright (c) 2025 Your Name\r\n \r\n Permission is hereby granted, free of charge, to any person obtaining a copy\r\n of this software and associated documentation files (the \"Software\"), to deal\r\n in the Software without restriction, including without limitation the rights\r\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n copies of the Software, and to permit persons to whom the Software is\r\n furnished to do so, subject to the following conditions:\r\n \r\n The above copyright notice and this permission notice shall be included in all\r\n copies or substantial portions of the Software.\r\n \r\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n SOFTWARE.\r\n \r\n ",
"summary": "ExtendedStim: tools for testing quantum circuits, quantum error-correction codes.",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/Moke2001/ExtendedStim",
"Source": "https://github.com/Moke2001/ExtendedStim"
},
"split_keywords": [
"quantum physics",
" quantum error-correction codes",
" physics",
" quantum circuits"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "141179c535ba5ff02a2a2b9188cce1d5fe89536c0932ab2ea6bba5590e762f1d",
"md5": "5af4a9ad2c1d33f45762235f34ba42a0",
"sha256": "b139c4a9d648718cba6df4aff0ae32a23bd8d0f16fa3eff8397617566139f417"
},
"downloads": -1,
"filename": "extendedstim-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5af4a9ad2c1d33f45762235f34ba42a0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 39226,
"upload_time": "2025-10-29T06:08:15",
"upload_time_iso_8601": "2025-10-29T06:08:15.353840Z",
"url": "https://files.pythonhosted.org/packages/14/11/79c535ba5ff02a2a2b9188cce1d5fe89536c0932ab2ea6bba5590e762f1d/extendedstim-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "a817af9ed325f15d53fe6969e62bea31a6380a3e42d11bdbd4e01a0c99626054",
"md5": "d36f2b74c002cbe1e65355bbd7f82b54",
"sha256": "f4a0a11c7b3624e0ef6f348e20c905a9f403536ffd16d4959b6529268b89a5e3"
},
"downloads": -1,
"filename": "extendedstim-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "d36f2b74c002cbe1e65355bbd7f82b54",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 31600,
"upload_time": "2025-10-29T06:08:16",
"upload_time_iso_8601": "2025-10-29T06:08:16.684400Z",
"url": "https://files.pythonhosted.org/packages/a8/17/af9ed325f15d53fe6969e62bea31a6380a3e42d11bdbd4e01a0c99626054/extendedstim-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-29 06:08:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Moke2001",
"github_project": "ExtendedStim",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "build",
"specs": []
},
{
"name": "twine",
"specs": []
},
{
"name": "numpy",
"specs": [
[
"~=",
"2.2.6"
]
]
},
{
"name": "ldpc",
"specs": [
[
"~=",
"2.3.10"
]
]
},
{
"name": "scipy",
"specs": [
[
"~=",
"1.16.2"
]
]
},
{
"name": "matplotlib",
"specs": [
[
"~=",
"3.10.7"
]
]
},
{
"name": "qutip",
"specs": [
[
"~=",
"5.2.1"
]
]
},
{
"name": "galois",
"specs": [
[
"~=",
"0.4.6"
]
]
},
{
"name": "networkx",
"specs": [
[
"~=",
"3.5"
]
]
},
{
"name": "qiskit",
"specs": [
[
"~=",
"2.2.2"
]
]
},
{
"name": "stim",
"specs": [
[
"~=",
"1.16.dev1758926350"
]
]
},
{
"name": "stimbposd",
"specs": [
[
"~=",
"0.1.0"
]
]
},
{
"name": "PyMatching",
"specs": [
[
"~=",
"2.3.1"
]
]
},
{
"name": "sinter",
"specs": [
[
"~=",
"1.15.0"
]
]
},
{
"name": "mip",
"specs": [
[
"~=",
"1.16rc0"
]
]
},
{
"name": "setuptools",
"specs": [
[
"~=",
"80.9.0"
]
]
}
],
"lcname": "extendedstim"
}