2026 Volume 35 Issue 3
Article Contents

Bin Zou, Kai Wu, Zhihua Chen. Estimating quantum coherence using limited quantum resources[J]. Chinese Physics B, 2026, 35(3): 030301. doi: 10.1088/1674-1056/adfb56
Citation: Bin Zou, Kai Wu, Zhihua Chen. Estimating quantum coherence using limited quantum resources[J]. Chinese Physics B, 2026, 35(3): 030301. doi: 10.1088/1674-1056/adfb56

Estimating quantum coherence using limited quantum resources

  • Received Date: 28/05/2025
    Accepted Date: 23/07/2025
    Available Online: 01/03/2026
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Figures(3)  /  Tables(1)

Article Metrics

Article views(325) PDF downloads(0) Cited by(0)

Access History

Estimating quantum coherence using limited quantum resources

Abstract: Quantum coherence, as one of the most fundamental non-classical features in quantum mechanics, plays a pivotal role in various quantum information processing tasks, including quantum computing and quantum metrology. The robustness of quantum coherence (RoC) offers an operational interpretation by quantifying the advantage provided by a quantum state in phase discrimination tasks. To achieve verification RoC with high precision via semidefinite programming (SDP), complete knowledge of quantum states is typically required. Relying solely on expectation values of observables may introduce significant errors in SDP-based estimations. To estimate RoC with high precision using limited data extracted from quantum states, firstly, we propose a semi-supervised K-nearest neighbor (KNN) algorithm (semi-KNN) and a semi-supervised method that combines the KNN and random forest (RF) models with a dynamical threshold (semi-KNN-RF). Then we implement the semi-KNN and semi-KNN-RF models to efficiently estimate quantum coherence by analyzing statistical data obtained from randomly generated local projective measurements performed on unknown quantum states. The semi-KNN-RF model performs better than the semi-KNN model. This innovative methodology allows for accurate coherence estimation, even for high-dimensional quantum systems.

1.   Introduction
  • Emerging from the fundamental principle of quantum superposition, quantum coherence represents an essential nonclassical phenomenon that distinguishes quantum systems from classical ones.[1] This indispensable resource underpins critical quantum technologies spanning from quantum computation and quantum metrology to quantum communication.[2–6] Various measures, including coherence distillation and cost, Fisher information-based measures, and relative entropy of coherence, have been proposed to characterize quantum coherence.[8–14] Although theoretically comprehensive, these methods often require complex quantum state tomography in experiments, making them impractical for large-scale systems. While its theoretical foundations are firmly established, significant challenges persist in developing reliable methods for both precise quantification and practical manipulation of coherence, which are limitations that currently hinder its full exploitation in quantum information processing.

    Among these measures, the robustness of quantum coherence (RoC) serves as an operational measure of quantum coherence, its lower bound is not only experimentally accessible but also numerically computed through semidefinite programming (SDP).[2] SDP can also be used to estimate other coherence measures, such as the geometric measure of quantum coherence.[15] However, due to its reliance on convex optimization techniques, the computational complexity increases significantly with the system dimension, posing a major challenge. In addition, lower and upper bounds of quantum coherence can be estimated by the spectrum estimation method with a small number of measurements or the traces and the entries of the density matrix.[16,17] A novel methodology has been proposed for estimating quantum coherence using limited experimental datasets.[18] Furthermore, a protocol has been developed for the direct measurement of quantum coherence in unknown quantum states through a two-copy collective measurement approach.[19] Recent advances have demonstrated the simultaneous estimation of quantum entanglement and coherence via purity detection techniques.[20] Recently, machine learning methods have been introduced to the field of quantum physics and quantum information to tackle various problems such as quantum state tomography and estimation, quantum error correction, and wave function reconstruction. Notably, machine learning has proven effective in entanglement detection and quantification.[21–29]

    Machine learning has also been proposed to estimate the RoC, but all the entries of the density matrices were used as features for the machine learning models, which requires quantum tomography and is quite resource-consuming.[30] Motivated by recent research progress, we integrate machine learning techniques with the quantification of quantum coherence based on the RoC. Firstly, we derive the SDP method to compute RoC values directly, and then we construct a labeled dataset using SDP. Lastly, we apply two semi-supervised regression models to estimate coherence values across different quantum states. We use the probabilities obtained by performing a small number of measurements as the features of two models. This method allows us to effectively determine the range of robustness while requiring a relatively small sample size. Our results demonstrate that a high coefficient of determination (R2) can be achieved, indicating the potential of machine learning for efficient and scalable quantum coherence quantification. Furthermore, the algorithm we proposed can be used to estimate other resources, such as quantum entanglement measures, provided that the measures can be calculated or approximated using numerical algorithms, such as semi-definite programming or the descent gradient method. This framework is highly scalable and can be extended to higher-dimensional quantum systems, offering new directions for estimating quantum correlations in quantum information science.

2.   SDP for calculating the RoC and the semi-supervised regression model
  • Let D(Cd) be the convex set of density operators acting on a d-dimensional Hilbert space, and let ℑ⊂D(Cd) be the subset of incoherent states, then the RoC, introduced in Ref. [2], is defined as the minimum weight of another state τ such that its convex mixture with ρ yields an incoherent state δ, namely

    Then the minimum s satisfies the following equality:

    The left-hand side of Eq. (2) is positive semidefinite, then the right-hand side is also positive semidefinite. Let p=11+s, then calculating the RoC is transformed to the following SDP problem:

    The solution of the above equation coincides with that obtained via SDP in Ref. [2]. While the SDP approach in Ref. [2] enables high-precision calculation of the RoC when exact density matrices from quantum state tomography are available, such tomographic reconstruction is notoriously resource-intensive in terms of both time and experimental requirements. Alternatively, one may estimate the RoC using only the expectation values of certain observables, but this approximation can introduce significant errors when using SDP in Ref. [2]. For instance, in the case of two-qutrit quantum states, the relative error in RoC estimation based on just six observable measurements may reach approximately 50%. To tackle this problem, we propose a semi-supervised machine learning method to estimate the quantum coherence with high precision using the limited data extracted from quantum states.

    While artificial neural networks (ANNs) could theoretically serve as a method to approximate the coherence measures, they are more computationally expensive than the K-nearest neighbor (KNN) algorithm due to complex training, hyperparameter tuning, and hardware needs. The KNN algorithm is a simple, instance-based supervised machine learning algorithm used for classification and regression, and it remains a lightweight alternative for low-resource settings. Our initial experimental results demonstrate that the KNN algorithm outperforms ANNs in the task of estimating the RoC. The KNN algorithm operates on the principle that similar data points (neighbors) tend to have similar outcomes. It predicts a sample’s value by averaging (for regression) or taking a majority vote (for classification) from its k closest neighbors, where proximity is determined using distance metrics such as Euclidean distance.

    The optimal k is typically selected through cross-validation to balance bias and variance. Since the KNN method relies on distance calculations, feature scaling is essential to ensure that all features contribute equally to the nearest-neighbor determination.

    In this article, the Euclidean distance is chosen. For two n-dimensional vectors x = (x1, x2, …, xn) and y = (y1, y2, …, yn), where x and y are two sample points and n is the number of features, xi and yi represent the i-th feature of samples x and y, respectively. The Euclidean distance is

    Based on the distances, the k nearest neighbors to the test sample are selected. Using the output values of these k neighbors, the output of the test sample is calculated by using the average values as

    where zi is the output value of the i-th neighbor. If weighted averaging is used, the predicted value is the weighted average of the k neighbors’ outputs, where the weights are usually the reciprocals of the distances between the neighbors and the test sample:

    where ωi=1d(x,xi) is the reverse of the distance between the test sample and the i-th neighbor. Select an appropriate value of k and predict the value of the next point using weighted averaging.

    Semi-supervised learning methods leverage a small amount of labeled data and a large amount of unlabeled data to enhance the model’s learning capabilities. Utilizing information from unlabeled data, semi-supervised learning methods can make full use of the information from a large number of unlabeled samples. Compared to supervised learning, which only uses labeled samples, it provides more data for model training, thereby improving the model’s performance and generalization ability. Compared to supervised learning, it can reduce labeling costs, and achieve good performance by labeling only a small number of samples, thus reducing the cost and workload of labeling samples.

    Semi-supervised K-nearest neighbors (semi-KNN) is an extension of the traditional KNN algorithm that incorporates both labeled and unlabeled data to improve classification or regression performance. This method leverages the strengths of supervised learning with labeled data and the unsupervised learning potential of unlabeled data, creating a more comprehensive model. In the semi-KNN approach, the algorithm initially uses the available labeled data to find the k-nearest neighbors for a given query instance. However, unlike the supervised KNN which relies solely on labeled data, semi-KNN also takes into account the unlabeled data points to refine the classification. This is achieved by considering the structure and patterns within the entire dataset, including both labeled and unlabeled examples, to make more informed predictions. One of the key advantages of semi-KNN is its ability to handle non-linear relationships and high-dimensional data without the need for explicit feature mapping, as seen in methods such as support vector machines.

    Besides the semi-KNN model, we utilize another semi-supervised model, namely, a random forest (RF) model. This algorithm demonstrates distinct advantages in handling high-dimensional data, owing to its inherent feature selection capabilities and robustness against overfitting. The RF model performs random sampling on the original dataset to construct distinct n sample datasets. Based on these datasets, n different decision tree models are built, and the final regression result is obtained by averaging the predictions from these decision tree models. Decision trees are tree-structured algorithms widely used in both classification and regression tasks. They recursively partition the dataset into smaller subsets, ultimately forming a tree-like model to predict the output of new data points. Figure 2 illustrates the decision-making process of an RF.

    We propose a semi-supervised regression model which combines the KNN and RF models with a dynamical threshold (semi-KNN-RF). We continuously use both RF and KNN models to predict unlabeled data. When the difference of their predictions is lower than some threshold, we use the average of their predictions as a pseudo-label to enrich the training data. The dynamic threshold function is used to adjust the threshold for pseudo-label generation during each iteration based on the current training epoch

    Specifically, t0 is the initial threshold, T is the maximum threshold, epoch is the current training epoch, epochm is the total number of epochs, and α is a parameter that controls the growth rate; the larger the value of α, the faster the threshold increases. The purpose of this function is to gradually raise the threshold as training progresses. At early stages, a lower threshold allows the model to generate pseudo-labels more flexibly. As training continues, the threshold increases, making the consistency requirement between model predictions stricter and thereby improving the quality of the pseudo-labels.

3.   Training semi-supervised regression models
  • Initially, we just generate quantum states randomly. However, numerical experiments reveal that the coherence measures RoC derived from these states exhibit a concentrated distribution, failing to cover the full range of possible values. This indicates that the generated states are not sufficiently diverse to meet our experimental requirements. To prepare the training dataset and the testing dataset, firstly we generate the quantum states as the convex mixture of randomly generated quantum states, incoherent states, and the maximal coherent states in d- dimensional Hilbert space, namely

    where ρ′ is a random state, δ′ is the random incoherent state and ω=1d∑i=1d|ii〉 with p ≥ 0, q ≤ 0 and p + q ≤ 1. Secondly, for a d-dimensional quantum state ρd, random d-dimensional local unitary matrices Uj (j = 1,…,M) are generated to act on the d-dimensional measurement basis and obtain {Uj|i〉}i=0d−1; here, i = 0,1,…, d–1 and |i〉 is the measurement basis with the i-th entry being 1 and other entries 0, Uj is the tensor product of two, three (or four) lower dimensional unitary matrices for 4, 6, 9, 18 (or 36) dimensional quantum states. Tensor products of low-dimensional unitaries are significantly more accessible to realize experimentally compared with arbitrary nonlocal unitaries, as they can be decomposed into sequences of fundamental gates in most quantum hardware architectures. This approach substantially reduces the demand for physical resources (e.g., fewer entangling gates are required). Performing the measurements {Uj|i〉}i=0d−1 on the quantum state ρd for j = 1,…, M, we can get the features of semi-KNN and semi-KNN-RF as {tr[ρdUj|i〉〈i|Uj+]}i,j. To improve generality of the model, we adopt the strategy of increasing the number of feature vectors. In the numerical experiment, we let M = 3 for three-dimensional (3D) and six-dimensional (6D) quantum states, and M = 4 for four-dimensional (4D), nine-dimensional (9D), eighteen-dimensional (18D) and thirty-six-dimensional (36D) quantum states. The labels are obtained by performing SDP process in Eq. (3).

  • Following the preparation of the dataset, the training process begins with splitting the training set into labeled data and unlabeled data. The labeled subset is used to train a KNN regression model or an RF, while the unlabeled portion is reserved for subsequent testing. During the process of KNN, cross-validation is employed to determine the optimal k-value (number of neighbors) to ensure model robustness. Once trained, the model predicts labels for the unlabeled data. High-confidence samples, which are those exhibiting the smallest distances to their nearest neighbors, are identified and incorporated back into the labeled training set. This iterative process continues, retraining the model with the augmented dataset in each cycle, until no further high-confidence samples can be reliably selected or a predefined maximum iteration count is reached. Upon completion of training, the remaining unlabeled data points form the test set, which is used to evaluate the model’s final performance. The left figure in Fig. 3 provides a flowchart illustrating this semi-supervised training process. The right figure in Fig. 3 presents a flowchart of the semi-KNN-RF model. After splitting the data, both KNN and RF regression models are trained on the labeled data. The absolute difference between the predictions of the two models is used to determine their consistency. If the difference is smaller than a dynamic threshold, the prediction is considered consistent, and the average of the two predictions is used as a pseudo-label. If the difference exceeds the threshold, the sample is excluded. This process continues until the maximum number of iterations is reached, completing the training of the entire model.

    The mean squared error (MSE), the mean absolute percentage error (MAPE) and the coefficient of determination (R2) are employed to evaluate the model’s performances. The MSE quantifies the average squared discrepancy between the predicted values and their corresponding true values. Mathematically, it is defined as

    where n is the total number of the samples, yi is the i-th true value, and y^i is the i-th predicted value. MAPE represents the average of the absolute percentage errors of the predictions from the true values, which is defined as

    The coefficient of determination (R2) serves as a key metric for evaluating regression model performance. It measures the proportion of variance in the dependent variable that is predictable from the independent variables. Its values range from 0 to 1, where R2 = 1 indicates a perfect fit where the model explains all the variability of the response data, and R2 = 0 suggests the model fails to capture any linear relationship. R2 is computed as

    where y¯ represents the mean of the observed data.

4.   Results
  • In the experiments, for different dimensional quantum states, different numbers of data are generated. For 3D random quantum states, a total of 30000 data points are generated. 80% of these data are randomly selected as the training data, which includes 21600 data points as original labeled dataset, and the remaining 2400 data points as unlabeled data. The experimental results consistently demonstrate R2 > 0.95. For 4D,6D, 9D, 18D and 36D random quantum states, 35000 data points were prepared, with 22400 data points assigned as the original labeled dataset and 5600 data points as unlabeled data, yielding R2 exceeding 0.95. These experimental results are summarized in Table 1, we present the numerical experimental results for quantum states of varying dimensions: 3D, 4D, 6D, 9D, 18D and 36D. The first row for each corresponding dimension shows the average results of four runs using the semi-KNN model, while the second row shows the average results of four runs using the semi-KNN-RF model based on a dynamic threshold. The parameters for the dynamic threshold can be set as t0 = 0.015, T = 0.085, α = 3 and epchm = 6 for all states. To ensure proper alignment with semi-supervised learning principles, we implemented the semi-KNN-RF model using a small labeled dataset (5,600 or fewer quantum states) combined with a large unlabeled dataset (22,400 or more quantum states) for RoC estimation. The dynamic threshold mechanism was carefully configured with dimension-specific parameters: For 3D, 4D, 6D and 9D quantum states, we set the initial threshold t0 = 0.15, maximum threshold T = 0.16, growth rate α = 3 and the number of the training epochs epchm = 6. For higher-dimensional 18D and 36D systems, we use t0 = 0.10, T = 0.15, α = 2 while maintaining epchm = 6. These parameter choices enable the model to begin with more flexible pseudo-labeling during early training stages before gradually enforcing stricter prediction consistency. Through proper hyperparameter tuning, this approach maintains high precision while adhering to the fundamental semi-supervised learning paradigm of leveraging minimal labeled data alongside abundant unlabeled data.

    Numerical experimental results show that our method performs well when dealing with different dimensional quantum states, achieving a high R2 with relatively small sample sizes. Beyond random unitary matrices, we investigate the relationship between the given unitary matrices and accuracy of estimating the RoC. When we replace one of the unitary matrices generated randomly with the identity matrix (i.e., using the original basis), the R2 decreases significantly. For example, we conducted experiments with one unitary matrix replaced by the identity matrix for the four-dimensional and six-dimensional quantum states, R2 becomes 0.556 and 0.882, respectively. However, replacing the unitary matrix with a fixed nonsparce matrix as Eq. (12) significantly improves the R2 back to its original performance. These examples demonstrate that the performance tends to be better when the unitary matrices are less sparse.

    For 18D quantum states, we perform experiments by replacing the first two random local unitary matrices with U1=U31(π4)⊗U31(π4)⊗X and U2=U31(π3)⊗U31(π3)⊗X, where U31(t1) is defined in Eq. (13). Under this configuration, the semi-KNN model achieved R2 = 0.8656, while the semi-KNN-RF model yielded R2 = 0.9175. Next, we further replace the third random local unitary matrix with U3=U32(π4)⊗U32(π4)⊗X, where U32(t2) is given in Eq. (13), then we have R2 = 0.8123, MSE = 2.1512 and MAPE = 0.1124 for semi-KNN and R2 = 0.8456, MSE = 1.7703 and MAPE = 0.1035 for the semi-KNN-RF model. Besides Uj (j = 1,2,3), we finally substitute the fourth random matrix with U32(π3)⊗U32(π3)⊗X, then R2 = 0.7972, MSE is 2.3245 and MAPE is 0.1129 for semi-KNN and R2 = 0.8255, MSE is 2.0006 and MAPE is 0.1078 for the semi-KNN-RF model.

5.   Conclusion
  • By leveraging the probabilities derived from three or four sets of projective measurements on unknown quantum states as input features for a semi-supervised KNN model and a semi-supervised hybrid KNN and RF model, we demonstrate that the robustness of quantum coherence can be estimated with high precision, even when using limited training data. Our results indicate that the semi-KNN-RF model generally outperforms the semi-KNN approach, achieving higher accuracy and reliability in coherence estimation. This suggests that a hybrid model combining the KNN and RF algorithms can enhance the predictive power of quantum machine learning models, particularly in scenarios where data availability is constrained. This work highlights the potential of integrating classical machine learning models for efficient quantum property estimation, especially in data-scarce scenarios.

Figure (3)  Table (1) Reference (30)

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return