Forecasting financial crashes with quantum computing