quantax.nn.Sequential#

class quantax.nn.Sequential(layers: Sequence[Callable], holomorphic: bool = False)#

Bases: Sequential

A sequence of equinox.Module applied 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 holomorphic argument is correct.

Attributes

layers

holomorphic