Getting Started
Tutorials
Reference Documentation
Extending NetKet
API documentation
Developer Documentation
Replace all complex leaves of a pytree with a RealImagTuple of 2 real leaves.
pytree (Any) – a pytree to convert to real
Any
Tuple[Any, Callable]
Tuple
Callable
A pair where the first element is the converted real pytree, and the second element is a callable for converting back a real pytree to a complex pytree of of the same structure as the input pytree.