jcmgray / quimb

A python library for quantum information and many-body calculations including tensor networks.
http://quimb.readthedocs.io
Other
484 stars 108 forks source link

Added an 'identity' tensor splitting option #241

Open rballester opened 3 months ago

rballester commented 3 months ago

This PR adds an "identity" tensor split operation that does nothing, i.e. sets the identity matrix as either the left or the right split. One use is creating an MPS network from a dense tensor in very little time and zero error.

(forgive me if there's a way to do this already -- I didn't find it)

pep8speaks commented 3 months ago

Hello @rballester! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 191:80: E501 line too long (143 > 79 characters)

rballester commented 3 weeks ago

I have adapted the PR; please check.