Skip to content

Commit 3404845

Browse files
committed
update vbe in readme
1 parent 3bc284b commit 3404845

File tree

6 files changed

+24
-9
lines changed

6 files changed

+24
-9
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,11 @@ If this project helps in your research, please cite our software whitepaper:
9393

9494
[TenCirChem: An Efficient Quantum Computational Chemistry Package for the NISQ Era](https://arxiv.org/abs/2303.10825)
9595

96-
which is also a good introduction to the software.
96+
which is also a good introduction to the software.
97+
98+
## Research and Applications
99+
100+
### Variational basis state encoder
101+
An efficient algorithm to encoder phonon states in electron-phonon systems for quantum computation.
102+
See [examples](https://github.com/tencent-quantum-lab/TenCirChem/tree/master/example).
103+
Reference paper: https://arxiv.org/pdf/2301.01442.pdf (published in PRR).

README_CN.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,12 @@ TenCirChem 使用 Academic Public License 发布。
9090

9191
[TenCirChem: An Efficient Quantum Computational Chemistry Package for the NISQ Era](https://arxiv.org/abs/2303.10825)
9292

93-
这也是软件的一个很好的介绍。
93+
这也是软件的一个很好的介绍。
94+
95+
## 研究和应用
96+
97+
### 变分基矢编码器
98+
变分基矢编码器是编码电声子系统中的声子用以量子计算的高效算法。
99+
请参考[例子](https://github.com/tencent-quantum-lab/TenCirChem/tree/master/example).
100+
参考论文: https://arxiv.org/pdf/2301.01442.pdf (发表于PRR).
101+

example/vbe_td.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
from scipy.integrate import solve_ivp
1414
from opt_einsum import contract
1515
import tensorcircuit as tc
16-
from renormalizer import Op, Mpo, Model, OpSum
1716

18-
from tencirchem import set_backend
17+
from tencirchem import set_backend, Op, Mpo, Model, OpSum
1918
from tencirchem.dynamic import get_ansatz, get_deriv, get_jacobian_func, qubit_encode_basis, sbm
2019

2120
from vbe_lib import get_psi_indices, get_contracted_mpo, get_contract_args

example/vbe_ti.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
import scipy
1414
from opt_einsum import contract
1515
import tensorcircuit as tc
16-
from renormalizer import Op, BasisSHO, BasisSimpleElectron, Mpo, Model
1716

18-
from tencirchem import set_backend
17+
from tencirchem import set_backend, Op, BasisSHO, BasisSimpleElectron, Mpo, Model
1918
from tencirchem.dynamic import get_ansatz, qubit_encode_op, qubit_encode_basis
2019
from tencirchem.utils import scipy_opt_wrap
2120

tencirchem/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545

4646
# dynamic module
4747
# as an external interface
48-
from renormalizer import Op, BasisSHO, BasisHalfSpin, BasisSimpleElectron, BasisMultiElectron
48+
from renormalizer import Op, BasisSHO, BasisHalfSpin, BasisSimpleElectron, BasisMultiElectron, Model, Mpo
49+
from renormalizer.model import OpSum
50+
4951
from tencirchem.utils.misc import get_dense_operator
5052
from tencirchem.dynamic.time_evolution import TimeEvolution
5153

tencirchem/static/hea.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,8 @@ def energy(self, params: Tensor = None, engine: str = None) -> float:
554554
>>> round(hea.energy([0, np.pi, 0, 0], "tensornetwork-noise"), 4)
555555
-1.1001
556556
>>> # HF state, measurement noise. Set the number of shots by `hea.shots`
557-
>>> round(hea.energy([0, np.pi, 0, 0], "tensornetwork-shot"), 2)
558-
-1.12
557+
>>> round(hea.energy([0, np.pi, 0, 0], "tensornetwork-shot"), 1)
558+
-1.1
559559
>>> # HF state, gate+measurement noise
560560
>>> hea.energy([0, np.pi, 0, 0], "tensornetwork-noise&shot") # doctest:+ELLIPSIS
561561
-1...

0 commit comments

Comments
 (0)