Trace monoids with idempotent generators and measure-only quantum automata