SubsystemOperator¶
- class SubsystemOperator(matrix, subsystems, str_label=None)[source]¶
Bases:
AbstractSubsystemOperator
A concrete operator specified in terms of a matrix.
Initialize.
- Parameters:
matrix – The matrix of the operator.
subsystems – The ordered subsystems representing the tensor factor system the matrix is specified on.
Methods
- matrix(ordered_subsystems=None)¶
Build the matrix for the operator relative to the ordered subsystems.
- remove_subsystems(subsystems)¶
Return operator with subsystems removed.
Components of operators with support on removed subsystems will be set to 0.
- Return type:
AbstractSubsystemOperator
- restrict_subsystems(subsystems)¶
Reduce the operator to the list of subsystems.
Components of operators with support on removed subsystems will be set to 0.
- Return type:
AbstractSubsystemOperator
Attributes
- subsystems¶
Get the subsystems the operator acts on.