Inconsitent results with qgt #1627
-
Hi all, currently, we are experimenting with the QGT and I found a strange behavior calculating it with the different implementations. hilbert = nk.hilbert.Spin(s=0.5, N=2)
model = nk.models.ARNNDense(hilbert=hilbert, layers=2, features=10, param_dtype=jnp.complex128)
state = nk.vqs.FullSumState(hilbert=hilbert, model=model)
qgt_dense_otf = nk.optimizer.qgt.QGTOnTheFly(state, holomorphic=True).to_dense()
qgt_dense_jac = nk.optimizer.qgt.QGTJacobianDense(state, holomorphic=True).to_dense()
print(jnp.max(jnp.abs(qgt_dense_otf - qgt_dense_jac))) output: 1.2837812382952014 is this by intention or is it a bug? Best wishes |
Beta Was this translation helpful? Give feedback.
Answered by
PhilipVinc
Oct 26, 2023
Replies: 1 comment 8 replies
-
Can you apply it to a vector? Not sure what you are doing automatically triggers the conversion to a dense matrix |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's because an autoregressive network is not holomorphic