1e8465af1ac8d938e2e7c692891bfa36edea03e6,tensorly/metrics/tests/test_entropy.py,,test_vonNeumann_entropy_mixed_state_CP_unnormalized_factors,#,55
Before Change
mat2 = np.matmul(state2, np.transpose(state2))
mat = (mat1 + mat2)/2.
tl_mat = parafac(mat, rank=2, normalize_factors=False)
tl_vne = vonNeumann_entropy(tl_mat)
dm_qutip = qutip.Qobj(mat)
qutip_vne = qutip.entropy_vn(dm_qutip, base=2)
assert np.allclose(tl_vne, qutip_vne)
After Change
mat2 = np.matmul(state2, np.transpose(state2))
mat = (mat1 + mat2)/2.
tl_mat = parafac(mat, rank=2, normalize_factors=False)
tl_vne = np.array(vonNeumann_entropy(tl_mat))
dm_qutip = qutip.Qobj(mat)
qutip_vne = qutip.entropy_vn(dm_qutip, base=2)
assert np.allclose(tl_vne, qutip_vne)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: tensorly/tensorly
Commit Name: 1e8465af1ac8d938e2e7c692891bfa36edea03e6
Time: 2021-03-03
Author: taylorpatti@g.harvard.edu
File Name: tensorly/metrics/tests/test_entropy.py
Class Name:
Method Name: test_vonNeumann_entropy_mixed_state_CP_unnormalized_factors
Project Name: tensorly/tensorly
Commit Name: 1e8465af1ac8d938e2e7c692891bfa36edea03e6
Time: 2021-03-03
Author: taylorpatti@g.harvard.edu
File Name: tensorly/metrics/tests/test_entropy.py
Class Name:
Method Name: test_vonNeumann_entropy_pure_state
Project Name: tensorly/tensorly
Commit Name: 1e8465af1ac8d938e2e7c692891bfa36edea03e6
Time: 2021-03-03
Author: taylorpatti@g.harvard.edu
File Name: tensorly/metrics/tests/test_entropy.py
Class Name:
Method Name: test_vonNeumann_entropy_pure_state_CP
Project Name: tensorly/tensorly
Commit Name: 1e8465af1ac8d938e2e7c692891bfa36edea03e6
Time: 2021-03-03
Author: taylorpatti@g.harvard.edu
File Name: tensorly/metrics/tests/test_entropy.py
Class Name:
Method Name: test_vonNeumann_entropy_mixed_state_CP
Project Name: tensorly/tensorly
Commit Name: 1e8465af1ac8d938e2e7c692891bfa36edea03e6
Time: 2021-03-03
Author: taylorpatti@g.harvard.edu
File Name: tensorly/metrics/tests/test_entropy.py
Class Name:
Method Name: test_vonNeumann_entropy_mixed_state