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.
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.