EuropeanCallPricing是一个欧式期权定价问题的模型,它使用了以下参数:

  • num_qubits:量子比特数目
  • strike_price:期权的行权价格
  • rescaling_factor:缩放因子
  • bounds:问题求解的边界
  • uncertainty_model:不确定性模型

接下来,定义了epsilon和alpha的值,它们用于确定迭代幅度估计的精度和置信水平。

然后,通过调用to_estimation_problem()方法将期权定价问题转化为估计问题。

最后,使用IterativeAmplitudeEstimation算法(迭代幅度估计)来解决估计问题。其中,epsilon_target是目标精度,alpha是置信水平,sampler是采样器,通过设置run_options参数来指定采样次数。

希望以上解析对您有所帮助。

european_call_pricing = EuropeanCallPricing num_qubits strike_price=strike_price rescaling_factor=c_approx bounds=bounds uncertainty_model=uncertainty_modelepsilon = 001alpha = 005probl

原文地址: https://www.cveoy.top/t/topic/iUoC 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录