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 | 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__ = [] |