triqs.operators.operators.Operator.make_canonical
- static Operator.make_canonical()
Dispatched C++ function(s).
[1] (is_dag: bool, indices: [int | str | float | [int, len = 3]]) -> Operator
Create a many-body operator that represents a single canonical operator \(\hat{c}_{\alpha}\) or \(\hat{c}_{\alpha}^{\dagger}\).
- Parameters:
- is_dagbool
Boolean flag indicating whether to create a creation (true) or annihilation (false) operator.
- indices[int | str | float | [int, len = 3]]
Single particle state index \(\alpha\).
- Returns:
- Operator
Many-body operator \(\hat{O} = \hat{c}_{\alpha}^{\dagger}\) or \(\hat{O} = \hat{c}_{\alpha}\).