基于离散变量型量子-经典神经网络的井筒多相流压力预测研究

Research on Pressure Prediction of Wellbore Multiphase Flow Based on Discrete Variable Quantum-Classical Neural Network

  • 摘要: 针对油气工程中井筒多相流压力分布正向与反向预测存在的参数耦合性强、传统算法迭代效率低、复杂工况精度衰减等问题,提出一种基于离散变量型量子电路的井筒压力分布量子-经典神经网络预测模型,分别构建井底压力正向预测模型与井口压力反向预测模型。首先采用Beggs-Brill算法生成涵盖井口工况、管道几何特征、流体物理性质的15维参数、10000组有效井筒多相流压力数据。然后,设计包含经典预处理器、离散变量(DV)量子核心、经典后处理器的离散变量型量子-经典神经网络,通过经典网络完成特征降维,依托DV量子电路的叠加与纠缠特性挖掘参数间的深层非线性耦合特征,再通过经典后处理器将量子电路输出结果映射为压力值。采用这10000组样本数据的误差反向传播实现经典网络与量子网络参数的联合优化和训练。此外,本文将训练完成的量子-经典神经网络代理模型,应用于需频繁调用井筒多相流压力分布计算的井筒-油藏耦合模拟场景中,通过与传统耦合模型进行对比测试,系统验证该代理模型在计算效率与预测精度两方面的实际应用效能。数值实验结果表明:井底压力正向预测模型与井口压力反向预测模型均实现训练误差的稳定收敛,在新样本验证过程中,两者相对误差分别低至0.16%、0.18%,即便在大负倾角、超长管道等极端边缘工况下,模型预测精度仍未出现衰减现象;在井筒-油藏耦合模拟的实际应用中,与传统耦合模拟方法相比,生产井井底流压相对误差仅为4.177%,注水井井底流压相对误差低至2.863%,生产井流量相对误差为1.7%,注水井流量相对误差仅为1.69%,而计算效率较传统方法提升近5倍。综上,本文提出的离散变量型量子-经典神经网络,有效实现了井筒压力的高精度、高稳定性预测,为量子计算时代油气工程领域的井筒压力计算及井筒-油藏耦合模拟,提供了一种高性能、高可靠性的新技术路径。

     

    Abstract: To address the problems encountered in the forward and reverse prediction of wellbore pressure distribution for multiphase flow in oil and gas engineering, such as strong parameter coupling, low iteration efficiency of traditional algorithms, and degraded accuracy under complex working conditions, this paper proposes a quantum-classical neural network prediction model for wellbore pressure distribution based on a discrete-variable (DV) quantum circuit. Forward and reverse prediction models are constructed for bottomhole pressure and wellhead pressure, respectively. First, the Beggs‑Brill correlation is adopted to generate 10, 000 valid wellbore multiphase flow pressure datasets with 15‑dimensional parameters covering wellhead working conditions, pipe geometric characteristics, and fluid physical properties. Then, a discrete‑variable quantum‑classical neural network is designed, consisting of a classical preprocessor, a discrete‑variable quantum core, and a classical postprocessor. The classical network is used to reduce feature dimensionality, and the superposition and entanglement characteristics of the DV quantum circuit are exploited to capture the deep nonlinear coupling features among parameters. The classical postprocessor then maps the output of the quantum circuit to pressure values. Joint optimization and training of the parameters in both the classical and quantum networks are realized via error backpropagation using the 10, 000 samples. Furthermore, the trained quantum‑classical neural network surrogate model is applied to wellbore‑reservoir coupled simulation, which requires frequent calculation of wellbore multiphase flow pressure distribution. Comparative tests with traditional coupled models systematically verify the practical performance of the proposed surrogate model in terms of computational efficiency and prediction accuracy. Numerical results show that both the bottomhole pressure forward prediction model and the wellhead pressure reverse prediction model achieve stable convergence of training errors. In validation on new samples, their relative errors are as low as 0.16% and 0.18%, respectively. Even under extreme edge conditions such as large negative inclination and ultra‑long pipelines, no degradation in prediction accuracy is observed. In practical wellbore‑reservoir coupled simulation, compared with the traditional coupled simulation method, the relative errors of bottomhole flowing pressure are only 4.177% for production wells and 2.863% for injection wells, while the relative errors of flow rate are 1.7% and 1.69%, respectively. Meanwhile, the computational efficiency is improved by nearly five times. In summary, the discrete‑variable quantum‑classical neural network proposed in this paper effectively achieves high‑precision and high‑stability prediction of wellbore pressure. It provides a high‑performance, high‑reliability technical pathway for wellbore pressure calculation and wellbore‑reservoir coupled simulation in the oil and gas engineering field in the quantum computing era.

     

/

返回文章
返回