netket.jax.maybe_promote_to_complex

netket.jax.maybe_promote_to_complex#

netket.jax.maybe_promote_to_complex(*types)[source]#

Maybe promotes the first argument to it’s complex counterpart given by dtype_complex(typ) if any of the arguments is complex