quantax.nn.Sequential#
- class quantax.nn.Sequential(layers: Sequence[Callable], holomorphic: bool = False)#
Bases:
SequentialA sequence of
equinox.Moduleapplied in order similar to Sequential in Equinox.Note
Functions can be added as a layer by wrapping them in
equinox.nn.Lambda.- __init__(layers: Sequence[Callable], holomorphic: bool = False)#
- Parameters:
layers – A sequence of
equinox.Module.holomorphic – Whether the whole network is a complex holomorphic function, default to
False.
Note
The users are responsible to ensure the given
holomorphicargument is correct.
- rescale(maximum: Array) Sequential#
Generate a new network in which all layers are rescaled. This is often used when a
Theta0Layeris included as a layer.- Parameters:
maximum – The maximum output obtained from this network.
- Returns:
The rescaled network
Note
This method generates a new network while doesn’t modify the existing network.
Attributes
layersholomorphic