ITensor / NDTensors.jl

A Julia package for n-dimensional sparse tensors.
Apache License 2.0
27 stars 7 forks source link

Add fermion sign functions #84

Closed emstoudenmire closed 3 years ago

emstoudenmire commented 3 years ago

This PR puts in functions which can be customized from outside of NDTensors to put in fermion minus signs in crucial places. By itself, this PR should not change any behavior of NDTensors, since the functions called have trivial defaults which do things like returning a tensor unchanged or just returning the number +1.

Here is a complete list of the changes:

mtfishman commented 3 years ago

Thanks, glad to see how minimal this is!

emstoudenmire commented 3 years ago

Tests are passing on the master branch

emstoudenmire commented 3 years ago

Good comments - thanks. I'll address them all or ask questions about ones I can't.