A¶
- class A(subsystems)[source]¶
Bases:
AbstractSubsystemOperator
Annihilation operator.
Defined as the matrix with non-zero entries \(0, 1, \sqrt{2}, ..., \sqrt{n - 1}\) in the first off-diagonal, where \(n\) is the dimension of the subsystem being acted on.
Initialize with the list of subsystems the operator acts 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.