0 votes
asked by (540 points)

I'm working on a project with itensor and needing to solve eigenvalues and vectors of a matrix-like ITensor, e.g., H=ITensor(i,i'), and the bound i.m() <=100 is not large.

Could someone help me out.
Thanks in advance.

commented by (70.1k points)
Hi, is the matrix Hermitian or a general matrix?
commented by (540 points)
edited by
Hi miles,
Sorry for a late response, Hermitian solver is enough in my recent project.

update: gmail filters  ITensor Support Q&A mail as spam, and I've missed the notification.

1 Answer

0 votes
answered by (70.1k points)
selected by
Best answer

Hi, so if you tensor is equivalent to a Hermitian matrix, you can use the diagHermitian function described on this page of the documentation:


Please let me know if that does not give you what you need -

Best regards,

commented by (540 points)
Thanks, diagHermitian do works.
commented by (340 points)
Hello Miles,

If the tensor is not Hermitian, how can one get the eigenvalues?

Best regards,
Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.