Investors started to pour billions into quantum technologies from 2021 after years of relatively stable investment levels.