quarkcircuit 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quarkcircuit-0.1.5/MANIFEST.in +1 -0
- quarkcircuit-0.1.5/PKG-INFO +90 -0
- quarkcircuit-0.1.5/README.md +66 -0
- quarkcircuit-0.1.5/pyproject.toml +37 -0
- quarkcircuit-0.1.5/quark/circuit/Baihua_previous-1.json +46991 -0
- quarkcircuit-0.1.5/quark/circuit/__init__.py +87 -0
- quarkcircuit-0.1.5/quark/circuit/backend.py +137 -0
- quarkcircuit-0.1.5/quark/circuit/circuit.py +1179 -0
- quarkcircuit-0.1.5/quark/circuit/circuit_wapper.py +84 -0
- quarkcircuit-0.1.5/quark/circuit/dag.py +208 -0
- quarkcircuit-0.1.5/quark/circuit/decompose_helpers.py +142 -0
- quarkcircuit-0.1.5/quark/circuit/layout_helpers.py +349 -0
- quarkcircuit-0.1.5/quark/circuit/matrix.py +213 -0
- quarkcircuit-0.1.5/quark/circuit/routing_helpers.py +170 -0
- quarkcircuit-0.1.5/quark/circuit/test_transpiler.py +25 -0
- quarkcircuit-0.1.5/quark/circuit/transpiler.py +603 -0
- quarkcircuit-0.1.5/quark/circuit/utils.py +300 -0
- quarkcircuit-0.1.5/quarkcircuit.egg-info/PKG-INFO +90 -0
- quarkcircuit-0.1.5/quarkcircuit.egg-info/SOURCES.txt +21 -0
- quarkcircuit-0.1.5/quarkcircuit.egg-info/dependency_links.txt +1 -0
- quarkcircuit-0.1.5/quarkcircuit.egg-info/requires.txt +5 -0
- quarkcircuit-0.1.5/quarkcircuit.egg-info/top_level.txt +1 -0
- quarkcircuit-0.1.5/setup.cfg +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include quark/circuit/Baihua_previous-1.json
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: quarkcircuit
|
|
3
|
+
Version: 0.1.5
|
|
4
|
+
Summary: Construction, visualization, and transpilation of quantum circuits
|
|
5
|
+
Author-email: Xiaoxiao Xiao <xiaoxx@baqis.ac.cn>
|
|
6
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
7
|
+
Classifier: Intended Audience :: Developers
|
|
8
|
+
Classifier: Intended Audience :: Science/Research
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Natural Language :: Chinese (Simplified)
|
|
11
|
+
Classifier: Natural Language :: English
|
|
12
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
17
|
+
Requires-Python: >=3.10
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
Requires-Dist: numpy
|
|
20
|
+
Requires-Dist: scipy
|
|
21
|
+
Requires-Dist: networkx
|
|
22
|
+
Requires-Dist: matplotlib
|
|
23
|
+
Requires-Dist: json
|
|
24
|
+
|
|
25
|
+
# QuarkCircuit
|
|
26
|
+
|
|
27
|
+
[](https://pypi.org/project/quarkcircuit/)
|
|
28
|
+
[](https://pepy.tech/project/quarkcircuit)
|
|
29
|
+
[](https://quarkstudio.readthedocs.io/en/latest/modules/quark/circuit/)
|
|
30
|
+
|
|
31
|
+
<!-- TOC --->
|
|
32
|
+
- [QuarkCircuit](#quarkcircuit)
|
|
33
|
+
- [What is QuarkCircuit](#what-is-quarkcircuit)
|
|
34
|
+
- [Installation](#installation)
|
|
35
|
+
- [First experience](#first-experience)
|
|
36
|
+
- [Plot a quantum circuit](#plot-a-quantum-circuit)
|
|
37
|
+
- [Transpile to basic gates](#transpile-to-basic-gates)
|
|
38
|
+
- [Tutorials](#tutorials)
|
|
39
|
+
- [License](#license)
|
|
40
|
+
<!-- /TOC -->
|
|
41
|
+
|
|
42
|
+
## What is QuarkCircuit
|
|
43
|
+
|
|
44
|
+
QuarkCircuit is a software package that offers a clean and concise circuit visualization feature, along with a simple transpilation functionality.
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## Installation
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
pip install quarkcircuit
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## First experience
|
|
54
|
+
|
|
55
|
+
### Plot a quantum circuit
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
from quark.circuit import QuantumCircuit
|
|
59
|
+
|
|
60
|
+
qc = QuantumCircuit(3)
|
|
61
|
+
qc.h(0)
|
|
62
|
+
qc.cx(0,1)
|
|
63
|
+
qc.cx(0,2)
|
|
64
|
+
qc.barrier()
|
|
65
|
+
qc.measure_all()
|
|
66
|
+
qc.draw()
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
<img src="image-3.png" alt="description" height="170">
|
|
70
|
+
|
|
71
|
+
<table ><tr><td bgcolor=MistyRose >Note: For better circuit display, please set your chrome or VS Code to a monospaced font, such as "Consolas".</td></tr></table>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Transpile to basic gates
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
from quark.circuit import Transpile
|
|
78
|
+
qct = Transpile(qc, physical_qubit_list = [98,99,100]).run(optimize_level=1)
|
|
79
|
+
qct.draw_simply()
|
|
80
|
+
```
|
|
81
|
+
<img src="image-4.png" alt="description" height="160">
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## Tutorials
|
|
85
|
+
|
|
86
|
+
It will be added in the future.
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
|
|
90
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# QuarkCircuit
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/quarkcircuit/)
|
|
4
|
+
[](https://pepy.tech/project/quarkcircuit)
|
|
5
|
+
[](https://quarkstudio.readthedocs.io/en/latest/modules/quark/circuit/)
|
|
6
|
+
|
|
7
|
+
<!-- TOC --->
|
|
8
|
+
- [QuarkCircuit](#quarkcircuit)
|
|
9
|
+
- [What is QuarkCircuit](#what-is-quarkcircuit)
|
|
10
|
+
- [Installation](#installation)
|
|
11
|
+
- [First experience](#first-experience)
|
|
12
|
+
- [Plot a quantum circuit](#plot-a-quantum-circuit)
|
|
13
|
+
- [Transpile to basic gates](#transpile-to-basic-gates)
|
|
14
|
+
- [Tutorials](#tutorials)
|
|
15
|
+
- [License](#license)
|
|
16
|
+
<!-- /TOC -->
|
|
17
|
+
|
|
18
|
+
## What is QuarkCircuit
|
|
19
|
+
|
|
20
|
+
QuarkCircuit is a software package that offers a clean and concise circuit visualization feature, along with a simple transpilation functionality.
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
pip install quarkcircuit
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## First experience
|
|
30
|
+
|
|
31
|
+
### Plot a quantum circuit
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
from quark.circuit import QuantumCircuit
|
|
35
|
+
|
|
36
|
+
qc = QuantumCircuit(3)
|
|
37
|
+
qc.h(0)
|
|
38
|
+
qc.cx(0,1)
|
|
39
|
+
qc.cx(0,2)
|
|
40
|
+
qc.barrier()
|
|
41
|
+
qc.measure_all()
|
|
42
|
+
qc.draw()
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
<img src="image-3.png" alt="description" height="170">
|
|
46
|
+
|
|
47
|
+
<table ><tr><td bgcolor=MistyRose >Note: For better circuit display, please set your chrome or VS Code to a monospaced font, such as "Consolas".</td></tr></table>
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Transpile to basic gates
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
from quark.circuit import Transpile
|
|
54
|
+
qct = Transpile(qc, physical_qubit_list = [98,99,100]).run(optimize_level=1)
|
|
55
|
+
qct.draw_simply()
|
|
56
|
+
```
|
|
57
|
+
<img src="image-4.png" alt="description" height="160">
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## Tutorials
|
|
61
|
+
|
|
62
|
+
It will be added in the future.
|
|
63
|
+
|
|
64
|
+
## License
|
|
65
|
+
|
|
66
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "quarkcircuit"
|
|
7
|
+
version = "0.1.5"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name="Xiaoxiao Xiao", email="xiaoxx@baqis.ac.cn" },
|
|
10
|
+
]
|
|
11
|
+
description = "Construction, visualization, and transpilation of quantum circuits"
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
license = {file = "LICENSE"}
|
|
14
|
+
requires-python = ">=3.10"
|
|
15
|
+
dependencies = [
|
|
16
|
+
"numpy",
|
|
17
|
+
"scipy",
|
|
18
|
+
"networkx",
|
|
19
|
+
"matplotlib",
|
|
20
|
+
"json",
|
|
21
|
+
]
|
|
22
|
+
classifiers = [
|
|
23
|
+
"Development Status :: 5 - Production/Stable",
|
|
24
|
+
"Intended Audience :: Developers",
|
|
25
|
+
"Intended Audience :: Science/Research",
|
|
26
|
+
"License :: OSI Approved :: MIT License",
|
|
27
|
+
"Natural Language :: Chinese (Simplified)",
|
|
28
|
+
"Natural Language :: English",
|
|
29
|
+
"Operating System :: Microsoft :: Windows",
|
|
30
|
+
"Operating System :: POSIX :: Linux",
|
|
31
|
+
"Operating System :: MacOS :: MacOS X",
|
|
32
|
+
"Programming Language :: Python :: 3.10",
|
|
33
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[tool.setuptools]
|
|
37
|
+
packages = ["quark.circuit"]
|