There is a newer version of the record available.

Published September 30, 2015 | Version v1.2.4

ITensor: Added .real, .cplx, and .set element access methods

  • 1. UC Irvine
  • 2. University of Michigan
  • 3. Columbia University
  • 4. reinventing the wheel since 199X
  • 5. Perimeter Institute for Theoretical Physics

Description

Both ITensor and IQTensor now support the following element access methods, where I1, I2, ... are Index objects (or IQIndex objects in the case of IQTensor):

T.set(I1(n1),I2(n2),..., x); //x is a Real or Cplx scalar T.real(I1(n1),I2(n2),...) //returns x, assuming x is real, throws if x is complex T.cplx(I1(n1),I2(n2),...) //returns x as a complex number

Files

ITensor-v1.2.4.zip

Files (459.9 kB)

Name Size Download all
md5:609887ca45b2b40dde9e0019a349d121
459.9 kB Preview Download

Additional details

Related works