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.
@@ -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
+ [![PyPI - Python Version](https://img.shields.io/badge/python-3.10-pink.svg)](https://pypi.org/project/quarkcircuit/)
28
+ [![Downloads](https://static.pepy.tech/badge/quarkcircuit)](https://pepy.tech/project/quarkcircuit)
29
+ [![API](https://img.shields.io/badge/API-quarkcircuit-green.svg)](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
+ [![PyPI - Python Version](https://img.shields.io/badge/python-3.10-pink.svg)](https://pypi.org/project/quarkcircuit/)
4
+ [![Downloads](https://static.pepy.tech/badge/quarkcircuit)](https://pepy.tech/project/quarkcircuit)
5
+ [![API](https://img.shields.io/badge/API-quarkcircuit-green.svg)](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"]