Comments (3)
Hi, the short answer is: at the moment, no. A loop like the one in your example would be the way to do it. We probably won't add such a method unless there is a common use case. Typically, removing a tensor from an MPO (of ITensors or IQTensors) would lead to it being ill-defined because there would now be a pair of virtual/link indices that no longer match up. Or, if you removed it from the end there would be a "dangling" virtual/link index. Does your use case not run in to either of these issues?
from itensor.
Hi, thanks for the quick reply. It runs fine, it's just a bit slow. I am not running a normal DMRG-like algorithm (http://arxiv.org/abs/1401.4874) so I have been careful in re-defining the spin and link index vectors. I am only really using the MPO as a convenient way of accessing the operators rather than the more complex operations that it allows. I suppose that some vector of pointers to ITensors would work, but I'll have to think a bit more about that.
from itensor.
Oh, ok I see. Nice paper - I had been wondering what this type of RG would look like as a tensor network. I wrote a tree tensor network code for a very different use case and for that I just created a new container class instead of using MPO. One tip (you may have already realized) is to define a new "Model" class at each layer. (Another person who was trying something like this was using the primeLevel feature to use the same Site indices at each level of the tree but with more and more primes---not a good way to go.) Shoot me an email [email protected] if you'd like to discuss any more code details. E.g. I wrote a special Model class that can automatically create operators at each level of the tree based only on the quantum numbers of the site indices.
from itensor.
Related Issues (20)
- range1 not working like python HOT 2
- (no)prime not working appropriately with <keyword arguments> HOT 1
- Add stracktraces to error messages
- configure/cmake HOT 3
- Introduce `apply` and `contract` MPS/MPO functions
- extract dense ITensor storage HOT 4
- .position() of MPS does not preserve the link index of the MPS HOT 1
- Typo in sample/Makefile
- subscript out of range in itensor/util/autovector.h HOT 2
- Reading input from a .tns file HOT 2
- Should QDense constructor error if zero blocks? HOT 6
- Two issues in installing ITensor c++ on Windows HOT 10
- fatal error: itensor/config.h: No such file or directory HOT 3
- Performing multiple HDF5 operations "captures" cout,cerr HOT 9
- compile error when using OpenBLAS in Ubuntu 22.04 HOT 1
- Losing QN information when reading from HDF5 HOT 1
- Bug: unexpected returning order of indexes HOT 3
- Unexpected behaviour: elt(T) doesn't raise out-of range error HOT 5
- Failure to compile with gcc-13: call of overloaded 'format(..)' is ambiguous HOT 2
- Fixing a bug in Unitttest SECTION("arnoldi (multiple eigenvectors)") HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itensor.