Search found 8 matches
- 11 Jul 2023, 15:37
- Forum: HowTos and FAQ for TeNPy
- Topic: ImportError when run on cluster
- Replies: 0
- Views: 66193
ImportError when run on cluster
Hi, I'd been using TenPy in my project for a while. Up to now, I only run my code on my MacBook and PC(Ubuntu), and it works very fine. Now, I move the same code to run on the university cluster (CentOS7). After installing TeNPy from source, my code raised an ImportError due to circular import when ...
- 20 Jun 2023, 13:47
- Forum: HowTos and FAQ for TeNPy
- Topic: Save evolution with hdf5
- Replies: 1
- Views: 2384
Save evolution with hdf5
I simulate time evolution of MPS by using ExpMPOEvolution method. Since I still do not know which observable I needed, instead of compute expectation value during and update to a next step, I would like to save the state at each steps in a file so I can open it later and compute the observables. My ...
- 12 Sep 2022, 12:52
- Forum: HowTos and FAQ for TeNPy
- Topic: Why ExpMPOEvolution updates my MPDO incorrectly.
- Replies: 1
- Views: 5951
Re: Why ExpMPOEvolution updates my MPDO incorrectly.
Okay, I've found the bug. :D Since the function expectation_value(Op_proj) is defined to get a probability p = <O_{proj}> from MPS, when O_{proj} is a projection operator, by computing \frac{<\psi|O_{proj}|\psi>}{<\psi|\psi>} . When I use it with MPDO, what the function really compute is p^2 (becaus...
- 01 Sep 2022, 12:35
- Forum: HowTos and FAQ for TeNPy
- Topic: Why ExpMPOEvolution updates my MPDO incorrectly.
- Replies: 1
- Views: 5951
Why ExpMPOEvolution updates my MPDO incorrectly.
EDIT: Problem solved, see in comment. Hi, I am trying to simulate time evolution of matrix product density operator (MPDO) using ExpMPOEvolution. My system is given by MPDOSite which is modified from SpinSite to has local dimension d^2. Here I define charge to be trivial for simplicity. Operators in...
- 03 Apr 2022, 20:02
- Forum: HowTos and FAQ for TeNPy
- Topic: TDVP time evolution with interaction / onsite state probability
- Replies: 4
- Views: 18551
Re: TDVP time evolution with interaction.
Okay, after searching for an old post again, I've found an answer. So I think it could be beneficial to the others who has the same problem as me.
The reason of the problem is that I had been using incorrect way to calculate the state probability. One can find the correct method in this post
The reason of the problem is that I had been using incorrect way to calculate the state probability. One can find the correct method in this post
- 03 Apr 2022, 18:20
- Forum: HowTos and FAQ for TeNPy
- Topic: TDVP time evolution with interaction / onsite state probability
- Replies: 4
- Views: 18551
TDVP time evolution with interaction / onsite state probability
Hi, I am trying to simulate a time evolution of driving 2 spin-1 system with external field by using TDVP method. Starting from ground state, when the coupling term did not present, the system has Rabi oscillation in both spin. However, once I added the coupling term in form of (Sz.Sz), I noticed th...
- 15 Mar 2022, 22:17
- Forum: HowTos and FAQ for TeNPy
- Topic: How Do I Define New Operators in TenPy
- Replies: 4
- Views: 5042
Re: How Do I Define New Operators in TenPy
Since I never work with BH model so I don't know if the way you define the new operator using kron() is really what you want or not. But this is how I did when I define MPO to work with SpinSite , but it should work as well for other Site . Let say, for whatever reason, I want to use the operator S_...
- 15 Mar 2022, 11:19
- Forum: HowTos and FAQ for TeNPy
- Topic: How Do I Define New Operators in TenPy
- Replies: 4
- Views: 5042
Re: How Do I Define New Operators in TenPy
Hi!
If you know matrix representation (op) of the desired operator, I think you can manually add it through your Site with add_op() function. for example if your Site is BosonSite then you can use.
If you know matrix representation (op) of the desired operator, I think you can manually add it through your Site with add_op() function. for example if your Site is BosonSite then you can use
Code: Select all
BosonSite.add_op(name, op)