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

Miles, Srwhite59, Jessica Alfonsi, Andrey E. Antipov, G. H. Cohen, Lucas O. Wagner, SDepenbrock, G1257, Kyungmin Lee, Erik Schnetter, jgukelberger · Zenodo (CERN European Organization for Nuclear Research) · 2015

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

Read the paper · More papers on PaperTik