Browse code

Add bare package and pyproject.toml

Joseph Weston authored on 09/11/2019 00:46:10
Showing 5 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,29 @@
1
+[build-system]
2
+requires = ["flit"]
3
+build-backend = "flit.buildapi"
4
+
5
+[tool.flit.metadata]
6
+module = "qsim"
7
+author = "Joseph Weston"
8
+author-email = "joseph@weston.cloud"
9
+home-page = "https://github.com/jbweston/qsim"
10
+requires-python=">=3.6"
11
+description-file="README.md"
12
+keywords = "quantum simulator"
13
+classifiers = ["License :: OSI Approved :: MIT License"]
14
+requires = [
15
+    "numpy",
16
+]
17
+
18
+[tool.flit.metadata.requires-extra]
19
+test = [
20
+    "pytest",
21
+    "pytest-cov",
22
+    "pytest-flake8",
23
+    "hypothesis",
24
+    "tox",
25
+    "flake8-per-file-ignores",
26
+]
27
+doc = [
28
+    "sphinx",
29
+]
0 30
new file mode 100644
... ...
@@ -0,0 +1,5 @@
1
+"""A simple package for simulating quantum circuits."""
2
+
3
+__version__ = "0.1.0.dev"
4
+
5
+from qsim import state, gate, measurement
0 6
new file mode 100644
... ...
@@ -0,0 +1,3 @@
1
+"""Quantum gate operations"""
2
+
3
+__all__ = []
0 4
new file mode 100644
... ...
@@ -0,0 +1,3 @@
1
+"""Quantum measurements"""
2
+
3
+__all__ = []
0 4
new file mode 100644
... ...
@@ -0,0 +1,11 @@
1
+"""Quantum state vectors
2
+
3
+The quantum state of :math:`n` quantum bits is represented as a 1D array of complex
4
+numbers of length :math:`2^n`; the components of the state vector in the
5
+computational basis.
6
+
7
+The computational basis for :math:`n` qubits is ordered by the number represented
8
+by the associated classical bitstring.
9
+"""
10
+
11
+__all__ = []