db073909d05ae6f91b7abd8d6251bfa247349447,qucumber/utils/cplx.py,,outer_prod,#,161
Before Change
z = torch.zeros(2, x.size()[1], y.size()[1], dtype=x.dtype, device=x.device)
z[0] = torch.ger(x[0], y[0]) - torch.ger(x[1], -y[1])
z[1] = torch.ger(x[0], -y[1]) + torch.ger(x[1], y[0])
return z
After Change
z = torch.zeros(2, x.size()[1], y.size()[1], dtype=x.dtype, device=x.device)
z[0] = torch.ger(real(x), real(y)) - torch.ger(imag(x), -imag(y))
z[1] = torch.ger(real(x), -imag(y)) + torch.ger(imag(x), real(y))
return z
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: PIQuIL/QuCumber
Commit Name: db073909d05ae6f91b7abd8d6251bfa247349447
Time: 2019-12-31
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/cplx.py
Class Name:
Method Name: outer_prod
Project Name: PIQuIL/QuCumber
Commit Name: f1afb5df71893ff2770c7cc7ca83d2ac68f977d7
Time: 2019-12-28
Author: emerali@users.noreply.github.com
File Name: tests/test_models_misc.py
Class Name:
Method Name: test_positive_wavefunction_psi
Project Name: PIQuIL/QuCumber
Commit Name: db073909d05ae6f91b7abd8d6251bfa247349447
Time: 2019-12-31
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/cplx.py
Class Name:
Method Name: conjugate