  In quantum networks, effective entanglement routing facilitates remote
entanglement communication between quantum source and quantum destination
nodes. Unlike routing in classical networks, entanglement routing in quantum
networks must consider the quality of entanglement qubits (i.e., entanglement
fidelity), presenting a challenge in ensuring entanglement fidelity over
extended distances. To address this issue, we propose a resource allocation
model for entangled pairs and an entanglement routing model with a fidelity
guarantee. This approach jointly optimizes entangled resources (i.e., entangled
pairs) and entanglement routing to support applications in quantum networks.
Our proposed model is formulated using two-stage stochastic programming, taking
into account the uncertainty of quantum application requirements. Aiming to
minimize the total cost, our model ensures efficient utilization of entangled
pairs and energy conservation for quantum repeaters under uncertain fidelity
requirements. Experimental results demonstrate that our proposed model can
reduce the total cost by at least 20\% compared to the baseline model.
