Toy code for np_conservervation
Toy code for np_conservervation
Is there any toy code (without tenpy) for charge conservation?
Re: Toy code for np_conservervation
No, there is no toycode.
The idea is really just to keep track of the charges, which divides the tensor into smaller blocks, and multiply only the subblocks with compatible charges, re-implementing tensordot, eigh, ... to exploit the block structure.
The idea is really just to keep track of the charges, which divides the tensor into smaller blocks, and multiply only the subblocks with compatible charges, re-implementing tensordot, eigh, ... to exploit the block structure.