evangelistalab / qforte

GNU Lesser General Public License v3.0
49 stars 18 forks source link

TensorOperator Changes #221

Closed tylerpbrady closed 1 year ago

tylerpbrady commented 1 year ago

Description

In this PR I added a lot of test cases for functions in the TensorOperator, Tensor, and SQ_Operator class. I also added various helper functions such as fill_from_nparray, fill_tensor_from_np_by_rank, split_by_rank, etc. All the functions, including the ones listed, were tested thoroughly with Numpy. Additionally, there are tests where we compare our Tensor Operators with Tensor Operators created via OpenFermion in a seperate environment with the same Numpy seeding.