Skip to content

Commit c893e7c

Browse files
auto switch for large qubit measurement
1 parent bdd4472 commit c893e7c

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ Please begin with [Quick Start](/docs/source/quickstart.rst) in the [full docume
3737

3838
For more information on software usage, sota algorithm implementation and engineer paradigm demonstration, please refer to 70+ [example scripts](/examples) and 30+ [tutorial notebooks](https://tensorcircuit-ng.readthedocs.io/en/latest/#tutorials). API docstrings and test cases in [tests](/tests) are also informative.
3939

40+
For beginners, please refer to [quantum computing lectures with TC-NG](https://github.com/sxzgroup/qc_lecture) to learn both quantum computing basis and representative usage of TensorCircuit-NG.
41+
4042
The following are some minimal demos.
4143

42-
- Circuit manipulation:
44+
- Circuit construction:
4345

4446
```python
4547
import tensorcircuit as tc
@@ -60,7 +62,7 @@ tc.set_dtype("complex128")
6062
tc.set_contractor("greedy")
6163
```
6264

63-
- Automatic differentiations with jit:
65+
- Automatic differentiation with jit:
6466

6567
```python
6668
def forward(theta):

README_cn.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ TensorCircuit-NG 现在支持真实量子硬件连接和实验,并提供优雅
3333

3434
有关软件用法,算法实现和工程范式演示的更多信息和介绍,请参阅 70+ [示例脚本](/examples) 和 30+ [案例教程](https://tensorcircuit-ng.readthedocs.io/en/latest/#tutorials)[测试](/tests) 用例和 API docstring 也提供了丰富的使用信息。
3535

36+
初学者也可以参考[量子计算教程](https://github.com/sxzgroup/qc_lecture)学习量子计算基础和 TensorCircuit-NG 的典型用法.
37+
3638
以下是一些最简易的演示。
3739

3840
- 电路操作:

tensorcircuit/basecircuit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,8 @@ def perfect_sampling(key: Any) -> Any:
616616
if batch is None:
617617
r = r[0] # type: ignore
618618
return r
619+
if self._nqubits > 35:
620+
jittable = False
619621
return sample2all(sample=ch, n=self._nqubits, format=format, jittable=jittable)
620622

621623
def sample_expectation_ps(

0 commit comments

Comments
 (0)