quantax.nn.pair_cpl#

quantax.nn.pair_cpl(x: Array) Array#

Make a real input complex by splitting it into two parts, one taken as the real part and the other the imaginary part. output = x[: x.shape[0] // 2] + 1j * x[x.shape[0] // 2 :].

Originally proposed in PRB 108, 054410.