Closed stared closed 4 years ago
I try to use new performance updates from quantum-tensors 0.4.9, see https://github.com/Quantum-Game/quantum-tensors/pull/32.
However, even tests in https://github.com/Quantum-Game/quantum-tensors/blob/master/tests/Photons.test.ts pass (see https://travis-ci.com/github/Quantum-Game/quantum-tensors/builds/181135173) we get errors in the game:
It seems that with each operation, instead of newVec = diffU.mul(oldVec) + oldVec we get newVec = U.mul(oldVec) + oldVec. So that, among other issues:
newVec = diffU.mul(oldVec) + oldVec
newVec = U.mul(oldVec) + oldVec
I look at the errors, and so far it seems that:
this.photons.cachedDiffU in QuantumFrame.ts gives wrong results (instead of only elements, it contains identity). I don't have any idea why.
this.photons.cachedDiffU
QuantumFrame.ts
Fixed in https://github.com/Quantum-Game/quantum-tensors/pull/34, now connected by #226.
Adding it before #226. For a starter, we want a minimal connection.
I try to use new performance updates from quantum-tensors 0.4.9, see https://github.com/Quantum-Game/quantum-tensors/pull/32.
However, even tests in https://github.com/Quantum-Game/quantum-tensors/blob/master/tests/Photons.test.ts pass (see https://travis-ci.com/github/Quantum-Game/quantum-tensors/builds/181135173) we get errors in the game:
It seems that with each operation, instead of
newVec = diffU.mul(oldVec) + oldVec
we getnewVec = U.mul(oldVec) + oldVec
. So that, among other issues:I look at the errors, and so far it seems that:
this.photons.cachedDiffU
inQuantumFrame.ts
gives wrong results (instead of only elements, it contains identity). I don't have any idea why.