Ultrashort optical pulse in a thin film of a topological insulator