Jiace Sun
Jiace Sun
`copy` operation of DM circuit forgets previous `apply_general_kraus` operations. ``` n = 1 c = tc.DMCircuit(n) c.h(0) P0 = np.array([[1.0, 0.0], [0.0, 0.0]]) P1 = np.array([[0.0, 0.0], [0.0, 1.0]]) c.apply_general_kraus([P0,...
In file https://github.com/google/TensorNetwork/blob/master/tensornetwork/matrixproductstates/base_mps.py, line 319: `res.append(self.backend.item(result.tensor))` and line 479 `return [self.backend.item(o) for o in c]`, the using of `self.backend.item` is incompatible with autograd in jax (and maybe also other backends)....
In source file matrixproductstates/base_mps.py function `apply_two_site_gate` line 583-592: ``` if center_position == site2: R, Q = self.backend.rq(tensor, pivot_axis=2) left_tensor = R right_tensor = Q set_center_position(site2) else: Q, R = self.backend.qr(tensor,...
`numba.pndindex` works well for high dimensions, but not for 1D case. For this following code ```python import numpy as np import numba as nb def partial_sum_1d_serial(A): # this one works...