The `IdentityOperator` works OK with the pretty printer that it inherits from `Operator`. I have added pretty printers to `BosonOperator` and `FermionOperator` as you suggested above.