You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/index.rst
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ TensorCircuit Next Generation
11
11
Introduction
12
12
---------------
13
13
14
-
TensorCircuit-NG is an open-source high-performance quantum computing software framework in Python.
14
+
TensorCircuit-NG is an open-source high-performance quantum software framework in Python.
15
15
16
16
* It is built for humans. 👽
17
17
@@ -29,12 +29,15 @@ TensorCircuit-NG is an open-source high-performance quantum computing software f
29
29
30
30
With the help of TensorCircuit-NG, now get ready to efficiently and elegantly solve interesting and challenging quantum computing and quantum many-body problems: from academic research prototype to industry application deployment.
31
31
32
+
.. important::
33
+
Please cite the `whitepaper <https://quantum-journal.org/papers/q-2023-02-02-912/>`_ when using TensorCircuit or TensorCircuit-NG in your research. The bibtex information is provided by ``tc.cite()``.
32
34
33
35
34
36
35
-
Relevant Links
37
+
Useful Links
36
38
--------------------
37
39
40
+
38
41
TensorCircuit is created and now maintained as TensorCircuit-NG by `Shi-Xin Zhang <https://github.com/refraction-ray>`_.
39
42
40
43
The current core authors of TensorCircuit-NG are `Shi-Xin Zhang <https://github.com/refraction-ray>`_ and `Yu-Qin Chen <https://github.com/yutuer21>`_.
@@ -168,7 +171,7 @@ TensorCircuit-NG is unifying infrastructures and interfaces for quantum computin
Copy file name to clipboardExpand all lines: tensorcircuit/about.py
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,20 +23,26 @@ def about() -> None:
23
23
print(f"Scipy version: {scipy.__version__}")
24
24
exceptModuleNotFoundError:
25
25
print(f"Scipy is not installed")
26
+
exceptExceptionase:
27
+
print(f"Misconfiguration for Scipy: {e}")
26
28
27
29
try:
28
30
importpandas
29
31
30
32
print(f"Pandas version: {pandas.__version__}")
31
33
exceptModuleNotFoundError:
32
34
print(f"Pandas is not installed")
35
+
exceptExceptionase:
36
+
print(f"Misconfiguration for Pandas: {e}")
33
37
34
38
try:
35
39
importtensornetworkastn
36
40
37
41
print(f"TensorNetwork version: {tn.__version__}")
38
42
exceptModuleNotFoundError:
39
43
print(f"TensorNetwork is not installed")
44
+
exceptExceptionase:
45
+
print(f"Misconfiguration for TensorNetwork: {e}")
40
46
41
47
try:
42
48
importcotengra
@@ -47,6 +53,8 @@ def about() -> None:
47
53
print(f"Cotengra: installed")
48
54
exceptModuleNotFoundError:
49
55
print(f"Cotengra is not installed")
56
+
exceptExceptionase:
57
+
print(f"Misconfiguration for Cotengra: {e}")
50
58
51
59
try:
52
60
importtensorflowastf
@@ -56,6 +64,8 @@ def about() -> None:
56
64
print(f"TensorFlow CUDA infos: {dict(tf.sysconfig.get_build_info())}")
57
65
exceptModuleNotFoundError:
58
66
print(f"TensorFlow is not installed")
67
+
exceptExceptionase:
68
+
print(f"Misconfiguration for TensorFlow: {e}")
59
69
60
70
try:
61
71
importjax
@@ -68,13 +78,17 @@ def about() -> None:
68
78
print(f"Jax installation doesn't support GPU")
69
79
exceptModuleNotFoundError:
70
80
print(f"Jax is not installed")
81
+
exceptExceptionase:
82
+
print(f"Misconfiguration for Jax: {e}")
71
83
72
84
try:
73
85
importjaxlib
74
86
75
87
print(f"JaxLib version: {jaxlib.__version__}")
76
88
exceptModuleNotFoundError:
77
89
print(f"JaxLib is not installed")
90
+
exceptExceptionase:
91
+
print(f"Misconfiguration for Jaxlib: {e}")
78
92
79
93
try:
80
94
importtorch
@@ -88,32 +102,64 @@ def about() -> None:
88
102
print(f"Pytorch cuda version: {torch.version.cuda}")
89
103
exceptModuleNotFoundError:
90
104
print(f"PyTorch is not installed")
105
+
exceptExceptionase:
106
+
print(f"Misconfiguration for Torch: {e}")
91
107
92
108
try:
93
109
importcupy
94
110
95
111
print(f"Cupy version: {cupy.__version__}")
96
112
exceptModuleNotFoundError:
97
113
print(f"Cupy is not installed")
114
+
exceptExceptionase:
115
+
print(f"Misconfiguration for Cupy: {e}")
98
116
99
117
try:
100
118
importqiskit
101
119
102
120
print(f"Qiskit version: {qiskit.__version__}")
103
121
exceptModuleNotFoundError:
104
122
print(f"Qiskit is not installed")
123
+
exceptExceptionase:
124
+
print(f"Misconfiguration for Qiskit: {e}")
105
125
106
126
try:
107
127
importcirq
108
128
109
129
print(f"Cirq version: {cirq.__version__}")
110
130
exceptModuleNotFoundError:
111
131
print(f"Cirq is not installed")
132
+
exceptExceptionase:
133
+
print(f"Misconfiguration for Cirq: {e}")
112
134
113
135
fromtensorcircuitimport__version__
114
136
115
137
print(f"TensorCircuit version {__version__}")
116
138
117
139
140
+
defcite(format: str="bib") ->str:
141
+
"""
142
+
Returns the citation information for tensorcircuit.
143
+
Please cite our work if you use the package in your research.
144
+
145
+
:param format: format for bib, defaults to "bib"
146
+
:type format: str, optional
147
+
:return: the citation information
148
+
:rtype: str
149
+
"""
150
+
ifformat=="bib":
151
+
return"""@article{Zhang_TensorCircuit_2023,
152
+
author = {Zhang, Shi-Xin and Allcock, Jonathan and Wan, Zhou-Quan and Liu, Shuo and Sun, Jiace and Yu, Hao and Yang, Xing-Han and Qiu, Jiezhong and Ye, Zhaofeng and Chen, Yu-Qin and Lee, Chee-Kong and Zheng, Yi-Cong and Jian, Shao-Kai and Yao, Hong and Hsieh, Chang-Yu and Zhang, Shengyu},
153
+
doi = {10.22331/q-2023-02-02-912},
154
+
journal = {Quantum},
155
+
month = feb,
156
+
title = {{TensorCircuit: a Quantum Software Framework for the NISQ Era}},
157
+
volume = {7},
158
+
year = {2023}}"""
159
+
elifformat=="aps":
160
+
return"""S.-X. Zhang, J. Allcock, Z.-Q. Wan, S. Liu, J. Sun, H. Yu, X.-H. Yang, J. Qiu, Z. Ye, Y.-Q. Chen, C.-K. Lee, Y.-C. Zheng, S.-K. Jian, H. Yao, C.-Y. Hsieh, and S. Zhang, TensorCircuit: a Quantum Software Framework for the NISQ Era, Quantum 7, 912 (2023)."""# pylint: disable=line-too-long
0 commit comments