A More General Quantum Credit Risk Analysis Framework