Optimization of non-Gaussian state generation using tensor networks and automatic differentiation | IEEE Conference Publication | IEEE Xplore