def METHOD_NAME(SType):
    hi = nk.hilbert.Spin(s=1 / 2, N=5)
    ma = nk.models.RBMModPhase(alpha=1, param_dtype=float)
    sa = nk.sampler.MetropolisLocal(hi, n_chains=16, reset_chains=False)
    vs = nk.vqs.MCState(sa, ma, n_samples=100, n_discard_per_chain=100)
    S = vs.quantum_geometric_tensor(SType)
    g_cmplx = jax.tree_map(lambda x: x + x * 0.1j, vs.parameters)
    with pytest.raises(
        nk.errors.RealQGTComplexDomainError, match="Cannot multiply the"
    ):
        S @ g_cmplx