quairkit.ansatz.container¶
The source file of the Sequential class.
- class quairkit.ansatz.container.OperatorList(*operators)¶
Sequential container.
Note
Sublayers will be added to this container in the order of argument in the constructor. The argument passed to the constructor can be iterable Layers or iterable name Layer pairs.
- extend(sequential)¶
Appends an given operator to the end.
- Parameters:¶
- sequential : OperatorList¶
module to append
- property oper_history : list[dict[str, str | list[int] | Tensor]]¶
Return the operator history of this Sequential
- property param : Tensor¶
Flattened parameters in this list.
- property grad : ndarray¶
Gradients with respect to the flattened parameters.
- transfer_static()¶
set
stop_gradient
of all parameters of the list asTrue