Contextuality-enhanced quantum state discrimination under fixed failure probability Preprint: APS/123-QED Min Namkung, Hyang-Tag Lim Abstract Quantum state discrimination enables the accurate identification of quantum states, which are generally nonorthogonal. Among various strategies, minimum-error discrimination and unambiguous state discrimination exhibit contextuality-enhanced success probabilities that surpass classical bounds, offering significant advantages for quantum sensing and communication. However, in practice, both error and failure outcomes can occur, suggesting the need for a unified strategy that incorporates both aspects while exploring the potential for contextuality enhancement. In this work, we theoretically demonstrate contextuality enhancement in quantum state discrimination under a fixed failure probability. We show that this enhancement disappears within a certain intermediate range of failure probabilities–a phenomenon absent in conventional strategies, where both minimum-error and unambiguous discrimination consistently outperform the noncontextual bound for equal priors. Moreover, we analyze how the existence of this non-enhancement region depends on the confusability of the quantum states, which corresponds to their fidelity in a quantum model. We further extend the discussion to the noisy state discrimination, which even encompasses the maximal-confidence discrimination. In this extended discussion, we observe that the non-enhancement region tends to disappear with increasing noise strength. I Introduction A quantum system is generally described by nonorthogonal quantum states c.w.helstrom ; a.s.holevo ; j.a.bergou ; s.m.barnett ; j.bae , making it crucial to develop measurement strategies that identify such states with the highest possible success probability. This necessity highlights the significance of quantum state discrimination for understanding quantum systems, ultimately contributing to the advancement of quantum information science. Beyond foundational studies, quantum state discrimination plays a central role in various prepare-and-measure tasks, including quantum sensing h.yuan ; m.hillery ; n.ali , quantum communication i.a.burenkov ; g.cariolaro , and quantum computation x.-f.yin ; j.tilly . In principle, quantum states can be discriminated without failure using minimum-error discrimination y.c.eldar ; j.bae2 ; d.ha ; m.namkung , or without error using unambiguous state discrimination i.d.ivanovic ; d.dieks ; a.peres ; g.jaeger ; j.a.bergou2 ; d.ha2 . However, in realistic settings, both error and failure outcomes inevitably occur with non-zero probabilities. This motivates a unified approach that bridges these two strategies of quantum state discrimination with fixed failure probability a.chefles ; c.w.zhang ; j.fiurasek ; u.herzog ; d.fields . An advantage of this generalized strategy is that it can be experimentally tuned by adjusting the allowable failure probability s.gomez , and thus encompassing the broadest class of measurement configurations. A particularly intriguing aspect of quantum state discrimination is its connection to quantum contextuality d.schmid ; j.shin ; s.mukerjee ; j.shin2 ; k.flatt ; k.flatt2 ; c.r.i.carceller_ . In the noncontextual models proposed by Kochen, Specker, and Spekkens c.budroni ; s.kochen ; r.w.spekkens , measurement outcomes are determined by hidden variables, independent of quantum postulates, and applicable to arbitrary quantum states. Consequently, violations of such models expand the notion of nonclassicality, complementing quantum nonlocality defined in multipartite systems j.s.bell ; j.f.clauser . It has recently been shown that noncontextual models fail to reproduce the success probabilities achieved by both minimum-error d.schmid ; s.mukerjee ; j.shin and optimal unambiguous j.shin2 ; k.flatt discrimination strategies. Given that these strategies are foundational for numerous quantum information protocols i.a.burenkov ; g.cariolaro ; l.-m.duan ; m.lostaglio ; j.b.brask ; c.r.i.carceller ; v.buzek , their contextuality enhancement underscores a vital advantage for emerging quantum technologies. Specifically, when two pure states are prepared with equal prior probabilities, both strategies consistently outperform the noncontextual bound d.schmid ; k.flatt . Given the practical relevance of the unified quantum state discrimination strategy, it is crucial to address the following question: Can contextuality-enhanced success probability be achieved for all values of the fixed failure probability? In this work, we investigate contextuality enhancement in this generalized quantum state discrimination framework. We first analytically derive the noncontextual upper bound of the success probability, applicable to arbitrary values of failure probability, prior probabilities, and pure state configurations. Our analysis reveals the existence of a specific range of failure probabilities where contextuality enhancement is not achievable–even when the prior probabilities are equal. This contrasts with both the minimum-error and unambiguous strategies, which always violate the noncontextual bound under equal priors. Moreover, we show that this non-enhancement region depends on the confusability between the two quantum states–i.e., how indistinguishable they are–which is mathematically equivalent to the quantum fidelity r.josza ; m.a.nielson . As confusability increases, contextuality enhancement becomes more likely at higher failure probabilities, and vice versa. Besides, as a quantum system is noisy in general, we further consider discrimination between mixed states, which even covers the maximal-confidence discrimination s.croke ; k.flatt ; k.flatt2 . We observe that the contextuality enhancement tends to be pronounced with increasing noise strength. II Background II.1 Scenario We begin by introducing the scenario of quantum state discrimination, as illustrated in in Fig. 1 . A quantum system is described by two nonorthogonal quantum states, |\psi_{1}\rangle and |\psi_{2}\rangle , prepared with prior probabilities q_{1} and q_{2} , respectively. To identify the state of the quantum system, a measurement represented by a positive operator-valued measure (POVM) \mathcal{M}=\{\hat{M}_{0},\hat{M}_{1},\hat{M}_{2}\} , where \hat{M}_{y} is the POVM element corresponding to an outcome y . If y\not=0 is obtained with the probability p(y|x)=\langle\psi_{x}|\hat{M}_{y}|\psi_{x}\rangle , then the measurement directs the quantum state to |\psi_{y}\rangle with nonzero correct probability, and the state discrimination is failed otherwise. In the quantum model, the success probability of discriminating the quantum states is formulated according to the Born’s rule as \displaystyle P_{\rm succ.}^{\rm(Q)}=q_{1}\langle\psi_{1}|\hat{M}_{1}|\psi_{1}\rangle+q_{2}\langle\psi_{2}|\hat{M}_{2}|\psi_{2}\rangle. (1) In the state discrimination of this work, it is assumed that the failure probability is fixed to a constant, denoted by \displaystyle Q=q_{1}\langle\psi_{1}|\hat{M}_{0}|\psi_{1}\rangle+q_{2}\langle\psi_{2}|\hat{M}_{0}|\psi_{2}\rangle. (2) In other words, the optimal strategy for maximizing the success probability is described by the solution of the following optimization problem: \displaystyle\mathrm{maximize} \displaystyle P_{\rm succ.}^{\rm(Q)} \displaystyle\mathrm{subject\ to} \displaystyle\hat{M}_{y}\geq 0,\ \hat{M}_{0}+\hat{M}_{1}+\hat{M}_{2}=\mathbb{I}, (3) \displaystyle Q=\mathrm{constant}, with the identity operator \mathbb{I} . When Q is equal to zero, the above optimization leads to the minimum-error discrimination, and it also covers the optimal unambiguous state discrimination for large Q . It was shown that the maximum success probability is analytically given by \displaystyle\max_{\mathcal{M}}P_{\rm succ.}^{\rm(Q)}=\frac{\bar{Q}{+}\left\{\bar{Q}^{2}-(2\sqrt{q_{1}q_{2}c_{\psi_{1},\psi_{2}}}-Q)^{2}\right\}^{\frac{1}{2}}}{2}, (4) with the confusability c_{\psi_{1},\psi_{2}}=|\langle\psi_{1}|\psi_{2}\rangle|^{2} and \bar{Q}=1-Q , if Q\leq 2\sqrt{q_{1}q_{2}c_{\psi_{1},\psi_{2}}} , and \displaystyle\max_{\mathcal{M}}P_{\rm succ.}^{\rm(Q)}=1-Q, (5) otherwise u.herzog ; d.fields ; s.gomez . Note that the critical value is equal to the minimum failure probability of the unambiguous state discrimination i.d.ivanovic ; d.dieks ; a.peres ; g.jaeger . It means that the optimal strategy is to perform the optimal unambiguous state discrimination when Q\geq 2\sqrt{q_{1}q_{2}c_{\psi_{1},\psi_{2}}} , leading to \max_{\mathcal{M}}P_{\rm succ.}^{\rm(Q)}=1-2\sqrt{q_{1}q_{2}c_{\psi_{1},\psi_{2}}} for large Q . We emphasize that the criterion of the theorem is particularly advantageous for practical quantum task, in which a measurement may have imperfection. For example, let us consider discriminating two polarization states of a single photon. It is rational in the practical manner to consider an inefficient photodetector g.cariolaro , resulting in photon loss probability Q . In this case, adjusting the measurement configuration is exactly same as what is exactly described in Eq. ( II.1 ). Figure 1: (a) Strategy for discriminating one of two quantum states |\psi_{1}\rangle and |\psi_{2}\rangle , prepared with prior probabilities q_{1} and q_{2} , respectively. Here, a measurement for discriminating these quantum states is established to output one of three outcomes y=0,1,2 . If y=1,2 , then one can identify the prepared state as |\psi_{y}\rangle , although incorrect sometimes. Otherwise, i.e., y=0 , it means that the identification is failed. In the strategy, the probability p(0|x) is fixed to a constant Q_{x} , leading to the fixed failure probability Q=q_{1}Q_{1}+q_{2}Q_{2} . (b) Representation of measurement probability. In a quantum model, conditional probability to obtain y for given |\psi_{x}\rangle is represented by p(y|x)=\langle\psi_{x}|\hat{M}_{y}|\psi_{x}\rangle . Meanwhile, in a noncontextual model, this conditional probability represented in terms of a hidden variable \lambda , based on the Bayesian theorem. II.2 Noncontextual model In the noncontextual model, a measurement probability is represented in terms of a hidden variable, without employing postulates of quantum measurement theory. Specifically, the probability to obtain an outcome y for given label x of the prepared system is formulated as s.kochen ; r.w.spekkens ; d.schmid ; s.mukerjee ; j.shin ; j.shin2 ; k.flatt \displaystyle p(y|x)=\int_{\Omega}d\lambda p_{\psi}(\lambda|x)p_{\mathcal{M}}(y|\lambda), (6) based on the Bayesian theorem. Here, \Omega denotes a set of the hidden variables, p_{\psi}(\lambda|x) represents the prepared system, and p_{\mathcal{M}}(y|\lambda) are response functions constituting a measurement. Both two functions are non-negative, satisfying \displaystyle\int_{\Omega}d\lambda p_{\psi}(\lambda|x)=1, \displaystyle\mathrm{for\ all\ }x=1,2, \displaystyle\sum_{y=0}^{2}p_{\mathcal{M}}(y|\lambda)=1, \displaystyle\mathrm{for\ all\ }\lambda\in\Omega. (7) Based on this formulation, the success probability of the discrimination is described by \displaystyle P_{\rm succ.}^{\rm(NC)} \displaystyle= \displaystyle q_{1}\int_{\Omega}d\lambda p_{\psi}(\lambda|1)p_{\mathcal{M}}(1|\lambda) (8) \displaystyle+ \displaystyle q_{2}\int_{\Omega}d\lambda p_{\psi}(\lambda|2)p_{\mathcal{M}}(2|\lambda), and the fixed failure probability is \displaystyle Q \displaystyle= \displaystyle q_{1}\int_{\Omega}d\lambda p_{\psi}(\lambda|1)p_{\mathcal{M}}(0|\lambda) (9) \displaystyle+ \displaystyle q_{2}\int_{\Omega}d\lambda p_{\psi}(\lambda|2)p_{\mathcal{M}}(0|\lambda), accordingly. The success probability in Eq. ( 8 ) is maximized with a certain value of Q in Eq. ( 9 ), eventually upper-bounded by a function of Q , and thus written as \bar{P}_{\rm succ.}^{\rm(NC)}(Q) . If P_{\rm succ.}^{\rm(Q)} can surpass this upper bound, i.e., P_{\rm succ.}^{\rm(Q)}\geq\bar{P}_{\rm succ.}^{\rm(NC)} , then it suggests that the quantum state discrimination is contextuality-enhanced, and thus beyond the classical logic. III Results Figure 2: (a) Contextuality-enhanced success probability investigated across 0.5\leq q_{1}\leq 0.6 for the better visibility, given confusability 0.6. Here, the surface colored in rainbow is the maximum success probability under the quantum model, and the gray surface is the noncontextual bound. The shaded area on the 2d plot consisting of Q and q_{1} axes shows the region where there is non-enhancement. (b) The specified contextuality enhancement in the case of equal priors. Here, the red (gray) lines show the maximum success probability of the quantum model (the noncontextual bound). The region with non-enhancement is observed to 0.245\leq Q\leq 0.7736 . III.1 Upper bound of success probability Now, let us theoretically evaluate the noncontextual bound, which is used for demonstrating the contextuality enhancement. We first define a function \Pi(\lambda)=p_{\mathcal{M}}(1|\lambda)+p_{\mathcal{M}}(2|\lambda) for simplifying the derivation. Using this function, we rewrite the success probability of Eq. ( 8 ) as (Detailed information is provided in Appendix A) \displaystyle P_{\rm succ.}^{\rm(NC)} \displaystyle= \displaystyle q_{1}(1-Q_{1})\int_{\Omega}d\lambda p_{\widetilde{\psi}}(\lambda|1)p_{\widetilde{\mathcal{M}}}(1|\lambda) (10) \displaystyle+ \displaystyle q_{2}(1-Q_{2})\int_{\Omega}d\lambda p_{\widetilde{\psi}}(\lambda|2)p_{\widetilde{\mathcal{M}}}(2|\lambda). Here, Q_{x} are constants denoted by \displaystyle Q_{x}=\int_{\Omega}d\lambda p_{\psi}(x|\lambda)p_{\mathcal{M}}(0|\lambda), (11) and p_{\widetilde{\psi}}(\lambda|x) and p_{\widetilde{\mathcal{M}}}(0|\lambda) are defined as \displaystyle p_{\widetilde{\psi}}(\lambda|x) \displaystyle= \displaystyle\frac{p_{\psi}(\lambda|x)\Pi(\lambda)}{1-Q_{x}}, \displaystyle p_{\widetilde{\mathcal{M}}}(y|\lambda) \displaystyle= \displaystyle\frac{1}{\Pi(\lambda)}p_{\mathcal{M}}(y|\lambda), (12) respectively. Notably, both two response functions p_{\widetilde{\mathcal{M}}}(1|\lambda) and p_{\widetilde{\mathcal{M}}}(2|\lambda) satisfy p_{\widetilde{\mathcal{M}}}(1|\lambda)+p_{\widetilde{\mathcal{M}}}(2|\lambda)=1 , and thus the maximization of the success probability in Eq. ( 10 ) is the noncontextual version of the minimum-error discrimination. Therefore, it is possible to use the inequality proven by Refs. s.mukerjee ; j.shin , leading to \displaystyle P_{\rm succ.}^{\rm(NC)}\leq\bar{Q}-\min\left\{q_{1}\bar{Q}_{1},q_{2}\bar{Q}_{2}\right\}c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}}, (13) where \bar{Q}=1-Q , \bar{Q}_{x}=1-Q_{x} , and c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}} is the confusability formulated as \displaystyle c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}} \displaystyle= \displaystyle\int_{\mathrm{supp}[p_{\widetilde{\psi}}(\lambda|2)]}d\lambda p_{\widetilde{\psi}}(\lambda|1) (14) \displaystyle= \displaystyle\int_{\mathrm{supp}[p_{\widetilde{\psi}}(\lambda|1)]}d\lambda p_{\widetilde{\psi}}(\lambda|2){,} with the confusability c_{\psi_{1},\psi_{2}} between two prepared states, equals to |\langle\psi_{1}|\psi_{2}\rangle|^{2} of the quantum model d.schmid . Here, \mathrm{supp}[p_{\widetilde{\psi}}(\lambda|x)] denotes the set of the hidden variables such that p_{\widetilde{\psi}}(\lambda|x) is larger than zero. We can prove that c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}} satisfies (Detailed derivation is provided in Appendix A) \displaystyle c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}}\geq\max\left\{\frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}},\frac{c_{\psi_{1},\psi_{2}}-Q_{2}}{1-Q_{2}},0\right\}{.} (15) If c_{\psi_{1},\psi_{2}} is less than Q_{x} for any x , then Eq. ( 39 ) is simplified to c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}}\geq 0 . In this case, the upper bound in Eq. ( 13 ) becomes \bar{P}_{\rm succ.}^{\rm(NC)}=1-Q , which is equal to the maximum success probability of Eq. ( 5 ), allowed by the quantum model. This implies that, as Q is rewritten as Q=q_{1}Q_{1}+q_{2}Q_{2} , there is no contextuality enhancement in the success probability if Q is selected to be large. Otherwise, i.e., c_{\psi_{1},\psi_{2}} larger than Q_{1} or Q_{2} , Eq. ( 13 ) is rewritten as \displaystyle P_{\rm succ.}^{\rm(NC)} \displaystyle\leq \displaystyle f(Q_{1},Q_{2}) (16) \displaystyle:= \displaystyle\bar{Q}-\min_{x}\left\{q_{x}\bar{Q}_{x}\right\}\max_{y}\left\{\frac{c_{\psi_{1},\psi_{2}}-Q_{y}}{\bar{Q}_{y}}\right\}. The above inequality is satisfied for all possible Q_{1} and Q_{2} , leading to that the the success probability admits \displaystyle P_{\rm succ.}^{\rm(NC)}\leq\max_{\begin{subarray}{c}0\leq Q_{1},Q_{2}\leq 1\\ Q=q_{1}Q_{1}+q_{2}Q_{2}\end{subarray}}f(Q_{1},Q_{2}). (17) The maximum value of f can be analytically evaluated as detailed in Appendix B. Through this evaluation, we finally obtain the following theorem regarding the upper bound of the success probability. Theorem 1. For a given fixed failure probability Q , the success probability of the noncontextual model in Eq. ( 10 ) is upper-bounded by \displaystyle\bar{P}_{\rm succ.}^{\rm(NC)}(Q)=\begin{cases}\max_{\begin{subarray}{c}x=1,2\\ z\in\left\{0,\frac{Q}{q_{x}}\right\}\end{subarray}}f_{x}(z)\ \mathrm{if}\ Q\leq q_{\rm min}c_{\psi_{1},\psi_{2}},\\ 1-Q\ \ \mathrm{otherwise},\end{cases} (18) where q_{\rm min}=\min\{q_{1},q_{2}\} and f_{x}(z) is a real function defined as \displaystyle f_{x}(z):=\bar{Q}-q_{x}(1-z)\frac{q_{x\oplus 1}c_{\psi_{1},\psi_{2}}-Q+q_{x}z}{q_{x\oplus 1}-Q+q_{x}z}, (19) with x\oplus 1=(x\mathrm{\ mod\ }2)+1 . In other words, once an optimal measurement is constructed to exceed the noncontextual bound of Eq. ( 18 ), it is useful for revealing the nonclassical aspect of a single system. As this involves the failure probability Q , which is mainly associated with a measurement error, it is of critical importance to verify the region of Q that allows the imperfect measurement to still useful for unveiling the nonclassicality. III.2 Verifying contextuality enhancement We investigate the behavior analysis of the contextuality enhancement as illustrated in Fig. 2 . In Fig. 2 (a), the maximum success probability under the quantum model is depicted with varying Q and q_{1} , compared with the noncontextual bound. We note that the case of Q=0 corresponds to the minimum-error discrimination, and that of large Q corresponds to the unambiguous state discrimination. Specifically, when Q is larger than a bound Q_{\rm max} , it is obvious that the maximum success probability is analytically derived as 1-Q_{\rm max} , allowed by the optimal unambiguous state discrimination. For example, the maximum success probability is fixed to i.d.ivanovic ; d.dieks ; a.peres ; g.jaeger \displaystyle P_{\rm succ.}^{\rm(Q)}=1-Q_{\rm max}^{\rm(Q)}=2\sqrt{q_{1}q_{2}c_{\psi_{1},\psi_{2}}}, (20) under the quantum model, and j.shin ; j.shin2 ; k.flatt \displaystyle P_{\rm succ.}^{\rm(NC)}=1-Q_{\rm max}^{\rm(NC)}=\max\{q_{1},q_{2}\}c_{\psi_{1},\psi_{2}}, (21) under the noncontextual model. We observe from Fig. 2 (a) that the success probability of the quantum model does not surpass the noncontextual bound when Q is within an intermediate range. This suggests that, when interpolating the minimum-error discrimination and the unambiguous state discrimination to cover the practical situation, it is crucial to avoid choosing a failure probability in this intermediate region. Figure 3: Contextuality-enhanced success probability investigated across 0.5\leq q_{1}\leq 0.6 for the better visibility. Here, the surface colored in rainbow is the maximum success probability under the quantum model, and the gray surface is the noncontextual bound. The shaded area on the 2d plot consisting of Q and q_{1} axes shows the region where there is non-enhancement. Here, the confusabilities are assumed to be 0.4 , 0.6 , and 0.8 in (a), (b), and (c), respectively. We focus on the case of equal prior probabilities as shown in Fig. 2 (b). In this case, there is no contextuality enhancement in the region of 0.245\leq Q\leq 0.7736 . Notably, this non-enhancement region depends on the prior probabilities. For example, two prior probabilities 0.8 and 0.2 yields the non-enhancement region 0.114\leq Q\leq 0.62 . We divide the entire region into four parts to display the explicit form the maximum success probability as follows. In the region of 0\leq Q\leq 0.166 , the bound of the noncontextual model is evaluated as \displaystyle\bar{P}_{\rm succ.}^{\rm(NC)}=1-\frac{1}{2}c_{\psi_{1},\psi_{2}}-(1-c_{\psi_{1},\psi_{2}})Q, (22) becoming equal to the minimum-error discrimination when Q=0 . In this region, the success probability under the quantum model always outperform the noncontextual bound of Eq. ( 22 ). In the region of 0.166\leq Q\leq 0.3 , the noncontextual bound is calculated as \displaystyle\bar{P}_{\rm succ.}^{\rm(NC)}=1-Q-\frac{1}{2}\frac{c_{\psi_{1},\psi_{2}}-2Q}{1-2Q}. (23) Unlike the bound of Eq. ( 22 ), the above noncontextual bound increases along with Q . Due to this behavior, a critical point appears at Q=0.245 , around which the enhancement is exhibited for 0.166\leq Q\leq 0.245 , while it disappears for 0.245\leq Q\leq 0.3 . In the region of 0.3\leq Q\leq 0.8 , the noncontextual bound is \displaystyle\bar{P}_{\rm succ.}^{\rm(NC)}=1-Q. (24) In this region, we observe that the maximal success probability allowed by the quantum theory does not surpass this noncontextual bound if Q is less than or equal to 0.7736. In the region of Q\geq 0.8 , the maximum success probability under the quantum model is equal to Eq. ( 20 ) if Q\geq 1-\sqrt{c_{\psi_{1},\psi_{2}}} , and the noncontextual bound is Eq. ( 21 ) if Q\geq 1-\frac{1}{2}c_{\psi_{1},\psi_{2}} . In this region, there exists the contextuality enhancement as what is observed from the optimal unambiguous state discrimination. We further investigate behavior of the region without the contextuality enhancement across the confusability, illustrated as Fig. 3 . In Fig. 3 , the confusabilities are considered to be 0.4, 0.6, and 0.8, respectively. We observe that, when the confusability is small, the region without the enhancement tends to be placed where the failure probability is small. Also, as the confusability becomes larger, this region moves to the place in which the failure probability is large. In the case of equal priors, for instance, the region without the enhancement is 0.145\leq Q\leq 0.631 in Fig. 3 (a), 0.245\leq Q\leq 0.7736 in Fig. 3 (b), and 0.288\leq Q\leq 0.894 in Fig. 3 (c). III.3 Generalization to mixed state discrimination For practical relevance, we further extend the aforementioned discussion to the case of discriminating two mixed qubit states. We particularly consider the equal prior probabilities to mainly focus on relation between the enhancement and the noise strength. It is assumed that the following two noisy qubit states are discriminated with the fixed failure probability m.a.nielson : \displaystyle\hat{\rho}_{x}=\epsilon|\psi_{x}\rangle\langle\psi_{x}|+(1-\epsilon)\frac{\hat{\mathbb{I}}_{2}}{2}, (25) where \epsilon\in[0,1) denotes the noise strength, and \hat{\mathbb{I}}_{2} denotes an identity operator. In this case, the optimization problem of Eq. ( II.1 ) is generalized to \displaystyle\mathrm{maximize} \displaystyle P_{\rm succ.}^{\rm(Q)}=\frac{1}{2}\mathrm{Tr}\left\{\hat{\rho}_{1}\hat{M}_{1}\right\}+\frac{1}{2}\mathrm{Tr}\left\{\hat{\rho}_{2}\hat{M}_{2}\right\} \displaystyle\mathrm{subject\ to} \displaystyle\hat{M}_{y}\geq 0,\ \hat{M}_{0}+\hat{M}_{1}+\hat{M}_{2}=\mathbb{I}, (26) \displaystyle Q=\mathrm{Tr}\left\{\hat{\rho}\hat{M}_{0}\right\}=\mathrm{constant}, with \hat{\rho}=\frac{1}{2}\hat{\rho}_{1}+\frac{1}{2}\hat{\rho}_{2} . It is shown that an optimal measurement has a balanced structure such that \langle\psi_{1}|\hat{M}_{0}|\psi_{1}\rangle=\langle\psi_{2}|\hat{M}_{0}|\psi_{2}\rangle and \langle\psi_{1}^{\bot}|\hat{M}_{0}|\psi_{1}^{\bot}\rangle=\langle\psi_{2}^{\bot}|\hat{M}_{0}|\psi_{2}^{\bot}\rangle j.fiurasek . Figure 4: Contextuality-enhanced success probability investigated across 0\leq Q,\epsilon\leq 1 for given confusability c_{\psi_{1},\psi_{2}}=0.4 . Here, the surface colored in rainbow is the maximum success probability under the quantum model, and the orange surface is the noncontextual bound. We verify that the balanced measurement can exhibit the contextuality enhancement. In the noncontextual model, the noisy qubit states of Eq. ( 25 ) are represented by the probability density function of the hidden variable: \displaystyle p_{\rho}(\lambda|x)=\epsilon p_{\psi}(\lambda|x)+(1-\epsilon)\frac{p_{\psi}(\lambda|x)+p_{\psi^{\bot}}(\lambda|x)}{2}, (27) where p_{\psi}(\lambda|x) and p_{\psi^{\bot}}(\lambda|x) are associated with a pure state |\psi_{x}\rangle in Eq. ( 25 ) and |\psi_{x}^{\bot}\rangle that is orthogonal to |\psi_{x}\rangle , respectively. The above modeling is rational in the aspect that the identity operator in Eq. ( 25 ) can have the spectral decomposition with |\psi_{x}\rangle and |\psi_{x}^{\bot}\rangle . In the same way that we conducted in Sec. III-A, we derive the following theorem regarding the noncontextual bound (The detailed derivation is provided in Appendix C). Theorem 2. When a balanced measurement is employed for discriminating mixed states, the success probability of the noncontextual model is upper-bounded by \displaystyle\bar{P}_{\rm succ.}^{\rm(NC)}(Q)=\begin{cases}\frac{1+(1-c_{\psi_{1},\psi_{2}})\epsilon-c_{\psi_{1},\psi_{2}}Q}{2}\ \ \mathrm{if}\ Q\leq\frac{1-\epsilon}{2},\\ \frac{3-c_{\psi_{1},\psi_{2}}+(1-c_{\psi_{1},\psi_{2}})\epsilon-2Q}{4}\\ \ \ \ \ \ \ \mathrm{if}\ \frac{1-\epsilon}{2}\leq Q\leq\frac{1-\epsilon+c_{\psi_{1},\psi_{2}}(1+\epsilon)}{2},\\ 1-Q\ \mathrm{otherwise,}\end{cases} (28) for a given Q and a noise strength \epsilon . It is noted that the maximum success probability is 1-Q_{\rm max} as Q is larger than Q_{\rm max} , allowed by the maximal-confidence discrimination. This leads to the success probability k.flatt2 \displaystyle P_{\rm succ.}^{\rm(NC)}=1-Q_{\rm max}^{\rm(NC)}=\frac{1}{2}\left(1-\frac{1-\epsilon}{2}-\epsilon c_{\psi_{1},\psi_{2}}\right). (29) Figure 4 illustrates the contextuality enhancement in discriminating two noisy qubit states. In Fig. 4 , we observe that the contextuality enhancement is possible when the fixed failure probability Q is not included in the intermediate region. Moreover, this intermediate region tends to reduce with increasing \epsilon , suggesting the pronounced enhancement. IV Conclusion In this work, we studied the contextuality enhancement in the quantum state discrimination strategy where the failure probability is fixed to a constant. We first established the noncontextual bound–an upper limit of the success probability under the noncontextual hidden-variable model–which applies to arbitrary fixed failure probabilities, prior probabilities, and confusability between states. Using this bound, we theoretically verified the occurrence of contextuality-enhanced success probability in terms of the failure probability. We found that contextuality enhancement does not always occur; rather, it is absent within a specific intermediate region of the failure probability. This result highlights the importance of identifying such a region when generalizing state discrimination strategies beyond minimum-error and unambiguous discrimination. Furthermore, we demonstrated that the boundary of this region is governed by the confusability between the quantum states, which quantifies their indistinguishability. As confusability increases, the enhancement tends to emerge only at higher failure probabilities; conversely, for less confusable states, enhancement is present even at lower failure probabilities. Finally, we extended our framework to the discrimination of two mixed quantum states. In such cases, the fixed-failure probability strategy connects the minimum-error and maximum-confidence discrimination. We propose an interesting behavior that the contextual aspect of the state discrimination tends to increase along with the noise strength. We believe that our investigation contributes to the deeper understanding of quantum contextuality and paves the way for its practical application in quantum information science and technology. Notably, both minimum-error and unambiguous state discrimination have been employed in various quantum information tasks such as quantum-enhanced communication i.a.burenkov ; g.cariolaro , quantum cloning v.buzek ; l.-m.duan ; m.lostaglio , and randomness certification j.b.brask ; c.r.i.carceller . Specifically, the state discrimination scheme considered in our work applies to quantum communication based on binary coherent states. Both minimum-error and unambiguous discrimination schemes assume perfect photodetectors s.j.dolinar ; k.banaszek , whereas the present scheme accommodates realistic detectors with inefficiency and dark counts that result in failure outcomes g.cariolaro . Our methodology can be particularly relevant to experimental scenarios where both error and failure events naturally arise. This also suggests that our results provide a practical guide for testing the nonclassicality of a single quantum system even with imperfect measurements, while circumventing the non-enhancement cases. Finally, it would be interesting to extend this framework to the discrimination of three or more mixed quantum states, potentially leading to a unified verification of contextuality across a broader class of state discrimination strategies, including those in the presence of noise. Appendix A. Detailed derivationn of noncontextual bound In this section, we derive the theoretical bound of the success probability in detail. Let us first begin this by rewriting the success probability in the noncontextual model: \displaystyle P_{\rm succ.}^{\rm(NC)} \displaystyle=q_{1}\int_{\Omega}d\lambda p_{\psi}(\lambda|1)p_{\mathcal{M}}(1|\lambda)+q_{2}\int_{\Omega}d\lambda p_{\psi}(\lambda|2)p_{\mathcal{M}}(2|\lambda) \displaystyle=q_{1}\int_{\mathrm{supp}[p_{\mathcal{M}}(1|\lambda)]}d\lambda p_{\psi}(\lambda|1)p_{\mathcal{M}}(1|\lambda)+q_{2}\int_{\mathrm{supp}[p_{\mathcal{M}}(2|\lambda)]}d\lambda p_{\psi}(\lambda|2)p_{\mathcal{M}}(2|\lambda) \displaystyle{=}q_{1}\int_{\mathrm{supp}[p_{\mathcal{M}}(1|\lambda)]\cup\mathrm{supp}[p_{\mathcal{M}}(2|\lambda)]}d\lambda p_{\psi}(\lambda|1)p_{\mathcal{M}}(1|\lambda)+q_{2}\int_{\mathrm{supp}[p_{\mathcal{M}}(1|\lambda)]\cup\mathrm{supp}[p_{\mathcal{M}}(2|\lambda)]}d\lambda p_{\psi}(\lambda|2)p_{\mathcal{M}}(2|\lambda). (30) The first equality holds since p_{\mathcal{M}}(x|\lambda) is strictly positive for \lambda\in\mathrm{supp}[p_{\mathcal{M}}(x|\lambda)] and zero otherwise. The second equality is proven using the following relations: \displaystyle\int_{\mathrm{supp}[p_{\mathcal{M}}(1|\lambda)]\cup\mathrm{supp}[p_{\mathcal{M}}(2|\lambda)]}d\lambda p_{\psi}(\lambda|x)p_{\mathcal{M}}(x|\lambda) \displaystyle=\int_{\mathrm{supp}[p_{\mathcal{M}}(x|\lambda)]}d\lambda p_{\psi}(\lambda|x)p_{\mathcal{M}}(x|\lambda)+\int_{\mathrm{supp}[p_{\mathcal{M}}(x|\lambda)]^{\rm c}\cap\mathrm{supp}[p_{\mathcal{M}}(x\oplus 1|\lambda)]}d\lambda p_{\psi}(\lambda|x)p_{\mathcal{M}}(x|\lambda)=\int_{\mathrm{supp}[p_{\mathcal{M}}(x|\lambda)]}d\lambda p_{\psi}(\lambda|x)p_{\mathcal{M}}(x|\lambda), (31) with x\oplus 1=(x\mathrm{\ mod\ }2)+1 . In the above relations: the first equality is a straightforward consequence of set-theoretic considerations; and the second equality is verified from that p_{\mathcal{M}}(x|\lambda) is zero for any \lambda\in\mathrm{supp}[p_{\mathcal{M}}(x|\lambda)]^{\rm c}\cap\mathrm{supp}[p_{\mathcal{M}}(x\oplus 1|\lambda)] . It is obvious that a function \Pi(\lambda)=p_{\mathcal{M}}(1|\lambda)+p_{\mathcal{M}}(2|\lambda) has its inverse \Pi^{-1}(\lambda)=\frac{1}{\Pi(\lambda)} if \lambda\in\mathrm{supp}[p_{\mathcal{M}}(1|\lambda)]\cup\mathrm{supp}[p_{\mathcal{M}}(2|\lambda)] , because either p_{\mathcal{M}}(1|\lambda) and p_{\mathcal{M}}(2|\lambda) is not zero in this region. This leads to the inequality \displaystyle P_{\rm succ.}^{\rm(NC)}\leq(1-Q)\left\{\frac{q_{1}(1-Q_{1})}{1-Q}\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda p_{\widetilde{\psi}}(\lambda|1)p_{\widetilde{\mathcal{M}}}(1|\lambda)+\frac{q_{2}(1-Q_{2})}{1-Q}\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda p_{\widetilde{\psi}}(\lambda|2)p_{\widetilde{\mathcal{M}}}(2|\lambda)\right\}, (32) where Q_{x} with x=1,2 and Q are defined as \displaystyle Q_{x}=\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda p_{\psi}(x|\lambda)\{1-\Pi(\lambda)\},\ Q=q_{1}Q_{1}+q_{2}Q_{2}, (33) respectively. It is noted that \Pi(\lambda)>0 if and only if p_{\mathcal{M}}(1|\lambda)>0 or p_{\mathcal{M}}(2|\lambda)>0 , leading to \mathrm{supp}[\Pi(\lambda)]=\mathrm{supp}[p_{\mathcal{M}}(1|\lambda)]\cup\mathrm{supp}[p_{\mathcal{M}}(2|\lambda)] . In Eq. ( 33 ), the probability distribution p_{\widetilde{\psi}}(\lambda|x) is described as p_{\widetilde{\psi}}(\lambda|x)=\frac{p_{\psi}(\lambda|x)\Pi(\lambda)}{1-Q_{x}}, (34) and the response function p_{\widetilde{\mathcal{M}}}(x|\lambda) is p_{\widetilde{\mathcal{M}}}(x|\lambda)=\frac{1}{\Pi(\lambda)}p_{\mathcal{M}}(x|\lambda). (35) According to what was shown by Refs. s.mukerjee ; j.shin , the success probability in Eq. ( 32 ) is upper-bounded by P_{\rm succ.}^{\rm(NC)}\leq(1-Q)\left[1-\min\left\{\frac{q_{1}(1-Q_{1})}{1-Q},\frac{q_{2}(1-Q_{2})}{1-Q}\right\}c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}}\right], (36) where c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}} is the confusability between p_{\widetilde{\psi}}(1|\lambda) and p_{\widetilde{\psi}}(2|\lambda) , defined as c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}}=\int_{\mathrm{supp}[p_{\widetilde{\psi}}(1|\lambda)]}d\lambda p_{\widetilde{\psi}}(2|\lambda)=\int_{\mathrm{supp}[p_{\widetilde{\psi}}(2|\lambda)]}d\lambda p_{\widetilde{\psi}}(1|\lambda). (37) Together with Eq. ( 34 ), we can show that the confusability c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}} satisfies \displaystyle c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}} \displaystyle=\int_{\mathrm{supp}[p_{\psi}(2|\lambda)]}d\lambda\frac{p_{\psi}(1|\lambda)\Pi(\lambda)}{1-Q_{1}} \displaystyle=\frac{1}{1-Q_{1}}\left[\int_{\mathrm{supp}[p_{\psi}(2|\lambda)]}d\lambda p_{\psi}(1|\lambda)-\int_{\mathrm{supp}[p_{\psi}(2|\lambda)]}d\lambda p_{\psi}(1|\lambda)p_{\mathcal{M}}(\lambda|0)\right] \displaystyle\geq\frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}}. (38) Here the first equality is satisfied since \int_{\mathrm{supp}[p_{\psi}(2|\lambda)]\cap\mathrm{ker}[\Pi(\lambda)]}d\lambda{p_{\psi}(1|\lambda)\Pi(\lambda)} , in which \mathrm{ker}[\Pi(\lambda)]:=\{\lambda\in\Omega:\Pi(\lambda)=0\} , is zero and thus \int_{\mathrm{supp}[p_{\widetilde{\psi}}(2|\lambda)]}d\lambda{p_{\psi}(1|\lambda)\Pi(\lambda)}=\int_{\mathrm{supp}[p_{\psi}(2|\lambda)]}d\lambda{p_{\psi}(1|\lambda)\Pi(\lambda)} , the second equality is straightforward due to \Pi(\lambda)=1-p_{\mathcal{M}}(0|\lambda) \forall\lambda\in\Omega , and the third inequality is derived using the fact that \mathrm{supp}[p_{\psi}(2|\lambda)]\subseteq\Omega . It is further noted that the third inequality becomes an equality when the support space of p_{\mathcal{M}}(\lambda|0) covers \mathrm{supp}[p_{\psi}(1|\lambda)]\cap\mathrm{supp}[p_{\psi}(2|\lambda)] . In the same manner, the confusability c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}} is lower-bounded by \frac{c_{\psi_{1},\psi_{2}}-Q_{2}}{1-Q_{2}} . Consequently, we obtain the following inequality c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}}\geq\max\left\{\frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}},\frac{c_{\psi_{1},\psi_{2}}-Q_{2}}{1-Q_{2}},0\right\}. (39) Substituting the above inequality to Eq. ( 36 ) yields P_{\rm succ.}^{\rm(NC)}\leq 1-Q-\min\left\{q_{1}(1-Q_{1}),q_{2}(1-Q_{2})\right\}\max\left\{\frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}},\frac{c_{\psi_{1},\psi_{2}}-Q_{2}}{1-Q_{2}},0\right\}, (40) which is admitted for all possible Q_{1} and Q_{2} satisfying 0\leq Q_{1},Q_{2}\leq 1 and Q=q_{1}Q_{1}+q_{2}Q_{2} . Finally, we obtain the upper bound \bar{P}_{\rm succ.}^{\rm(NC)} as {P}_{\rm succ.}^{\rm(NC)}\leq\max_{\begin{subarray}{c}0\leq Q_{1},Q_{2}\leq 1\\ Q=q_{1}Q_{1}+q_{2}Q_{2}\end{subarray}}\left[1-Q-\min\left\{q_{1}(1-Q_{1}),q_{2}(1-Q_{2})\right\}\max\left\{\frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}},\frac{c_{\psi_{1},\psi_{2}}-Q_{2}}{1-Q_{2}},0\right\}\right]. (41) Appendix B. Explicit form of noncontextual bound We derive the explicit form of the noncontextual bound by solving the optimization problem in Eq. ( 41 ). We first consider the three cases as detailed below: • Let Q_{1},Q_{2}\geq c_{\psi_{1},\psi_{2}} . Then, the bound of Eq. ( 41 ) is simplified to {P}_{\rm succ.}^{\rm(NC)}\leq 1-Q . • Let Q_{1}\geq c_{\psi_{1},\psi_{2}} and Q_{2}\leq c_{\psi_{1},\psi_{2}} . Then, the upper bound is rewritten as {P}_{\rm succ.}^{\rm(NC)}\leq\max_{\begin{subarray}{c}0\leq Q_{1}\leq c_{\psi_{1},\psi_{2}}\leq Q_{2}\leq 1\\ Q=q_{1}Q_{1}+q_{2}Q_{2}\end{subarray}}\left[1-Q-\min\left\{q_{1}(1-Q_{1}),q_{2}(1-Q_{2})\right\}\frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}}\right]. (42) In the case of q_{1}(1-Q_{1})\leq q_{2}(1-Q_{2}) , the above bound is simplified as {P}_{\rm succ.}^{\rm(NC)}\leq\max_{\begin{subarray}{c}0\leq Q_{1}\leq c_{\psi_{1},\psi_{2}}\leq Q_{2}\leq 1\\ Q=q_{1}Q_{1}+q_{2}Q_{2}\end{subarray}}[1-Q-q_{1}(c_{\psi_{1},\psi_{2}}-Q_{1})]\leq\max_{0\leq Q_{1}\leq c_{\psi_{1},\psi_{2}}}[1-Q-q_{1}(c_{\psi_{1},\psi_{2}}-Q_{1})]=1-Q. (43) Otherwise, the upper bound is written as \displaystyle{P}_{\rm succ.}^{\rm(NC)} \displaystyle\leq\max_{\begin{subarray}{c}0\leq Q_{1}\leq c_{\psi_{1},\psi_{2}}\leq Q_{2}\leq 1\\ Q=q_{1}Q_{1}+q_{2}Q_{2}\end{subarray}}\left[1-Q-q_{2}(1-Q_{2})\frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}}\right] \displaystyle\leq\max_{0\leq Q_{1}\leq c_{\psi_{1},\psi_{2}}\leq Q_{2}\leq 1}\left[1-Q-q_{2}(1-Q_{2})\frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}}\right]. (44) It is noted that \frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}} monotonically decreases with Q_{1} in the region of 0\leq Q_{1}\leq c_{\psi_{1},\psi_{2}} . Thus, the upper bound is evaluated as {P}_{\rm succ.}^{\rm(NC)}\leq 1-Q achieved by Q_{1}=c_{\psi_{1},\psi_{2}} . • Let Q_{1}\leq c_{\psi_{1},\psi_{2}} and Q_{2}\geq c_{\psi_{1},\psi_{2}} . Then, the upper bound is calculated as {P}_{\rm succ.}^{\rm(NC)}\leq 1-Q , in the same way that we calculated in the above case. All these three cases yield the noncontextual bound \bar{P}_{\rm succ.}^{\rm(NC)}=1-Q . Now we focus on the case of Q_{1},Q_{2}\leq c_{\psi_{1},\psi_{2}} . In this case, the upper bound \bar{P}_{\rm succ.}^{\rm(NC)} is described from Eq. ( 41 ) as \bar{P}_{\rm succ.}^{\rm(NC)}=\max_{\begin{subarray}{c}0\leq Q_{1},Q_{2}\leq c_{\psi_{1},\psi_{2}}\\ Q=q_{1}Q_{1}+q_{2}Q_{2}\end{subarray}}\left[1-Q-\min\left\{q_{1}(1-Q_{1}),q_{2}(1-Q_{2})\right\}\max\left\{\frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}},\frac{c_{\psi_{1},\psi_{2}}-Q_{2}}{1-Q_{2}}\right\}\right]. (45) It is straightforward that \bar{P}_{\rm succ.}^{\rm(NC)}=1-Q if q_{1}(1-Q_{1})\leq q_{2}(1-Q_{2}) and \frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}}\geq\frac{c_{\psi_{1},\psi_{2}}-Q_{2}}{1-Q_{2}} , or if q_{1}(1-Q_{1})\geq q_{2}(1-Q_{2}) and \frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}}\leq\frac{c_{\psi_{1},\psi_{2}}-Q_{2}}{1-Q_{2}} . Otherwise, we can have a nontrivial upper bound of the success probability. In the case of q_{1}(1-Q_{1})\leq q_{2}(1-Q_{2}) and \frac{c_{\psi_{1},\psi_{2}}-Q_{1}}{1-Q_{1}}\leq\frac{c_{\psi_{1},\psi_{2}}-Q_{2}}{1-Q_{2}} , for instance, \bar{P}_{\rm succ.}^{\rm(NC)} is rewritten as \bar{P}_{\rm succ.}^{\rm(NC)}=\max_{Q_{\rm 1,min}\leq Q_{1}\leq Q_{\rm 1,max}}\left[1-Q-q_{1}(1-Q_{1})\frac{q_{2}c_{\psi_{1},\psi_{2}}-Q+q_{1}Q_{1}}{q_{2}-Q+q_{1}Q_{1}}\right]:=\max_{Q_{\rm 1,min}\leq Q_{1}\leq Q_{\rm 1,max}}f_{1}(Q_{1}), (46) where Q_{\rm 1,min} and Q_{\rm 1,max} are \displaystyle Q_{\rm 1,min}=\max\left\{0,\frac{Q-q_{2}c_{\psi_{1},\psi_{2}}}{q_{1}}\right\},\ \ Q_{\rm 1,max}=\min\left\{\frac{Q}{q_{1}},c_{\psi_{1},\psi_{2}}\right\}, (47) respectively. Both Eqs. ( 46 ) and ( 47 ) are derived from that both Q_{1} and Q_{2}=\frac{Q-q_{1}Q_{1}}{q_{2}} should satisfy 0\leq Q_{x}\leq c_{\psi_{1},\psi_{2}} . To maximize f_{1}(Q_{1}) in Eq. ( 46 ), let us consider two extremum points Q_{\rm 1,ext}^{(\pm)}=\frac{Q-q_{2}\pm\sqrt{(1-c_{\psi_{1},\psi_{2}})(1-Q)q_{2}}}{q_{1}}. (48) Since \frac{\partial^{2}f_{1}}{\partial Q_{1}^{{2}}}\Big|_{Q_{1}=Q_{\rm 1,ext}^{(+)}} is positive-definite, meaning that Q_{\rm 1,ext}^{(+)} is a local minimum of f(Q_{1}) , it is not a global maximum. Let us then focus on Q_{\rm 1,ext}^{(-)} , yielding \frac{\partial^{2}f_{1}}{\partial Q_{1}^{{2}}}\Big|_{Q_{1}=Q_{\rm 1,ext}^{(-)}}<0 . Noting that Q_{1}\geq 0\ \ \rightarrow\ \ \frac{q_{2}c_{\psi_{1},\psi_{2}}-Q+q_{1}Q_{1}}{q_{2}-Q+q_{1}Q_{1}}\leq 1, (49) which is equivalent to \frac{q_{2}c_{\psi_{1},\psi_{2}}-Q+q_{1}Q_{1}}{q_{2}-Q+q_{1}Q_{1}}>1\ \ \rightarrow\ \ Q_{1}<0, (50) Q_{\rm 1,ext}^{(-)} is less than zero since \frac{q_{2}c_{\psi_{1},\psi_{2}}-Q+q_{1}Q_{\rm 1,ext}^{(-)}}{q_{2}-Q+q_{1}Q_{\rm 1,ext}^{(-)}}=\frac{q_{2}(1-c_{\psi_{1},\psi_{2}})+\sqrt{(1-c_{\psi_{1},\psi_{2}})(1-Q)q_{2}}}{\sqrt{(1-c_{\psi_{1},\psi_{2}})(1-Q)q_{2}}}>1. (51) All these arguments lead to that there is no local minimum and maximum in the region of Q_{\rm 1,min}\leq Q_{1}\leq Q_{\rm 1,max} , implying that either Q_{\rm 1,min} or Q_{\rm 1,max} is the global maximum. Likewise, we derive \bar{P}_{\rm succ.}^{\rm(NC)} as \bar{P}_{\rm succ.}^{\rm(NC)}=\max_{Q_{\rm 2,min}\leq Q_{2}\leq Q_{\rm 2,max}}\left[1-Q-q_{2}(1-Q_{2})\frac{q_{1}c_{\psi_{1},\psi_{2}}-Q+q_{2}Q_{2}}{q_{1}-Q+q_{2}Q_{2}}\right]:=\max_{Q_{\rm 2,min}\leq Q_{2}\leq Q_{\rm 2,max}}f_{2}(Q_{2}), (52) with \displaystyle Q_{\rm 2,min}=\max\left\{0,\frac{Q-q_{1}c_{\psi_{1},\psi_{2}}}{q_{2}}\right\},\ \ Q_{\rm 2,max}=\min\left\{\frac{Q}{q_{2}},c_{\psi_{1},\psi_{2}}\right\}, (53) where f_{2}(Q_{2}) is maximized when Q_{2} is either Q_{\rm 2,min} or Q_{\rm 2,max} . Finally, \bar{P}_{\rm succ.}^{\rm(NC)} takes the form of \bar{P}_{\rm succ.}^{\rm(NC)}=\max\left\{f_{1}(Q_{\rm 1,min}),f_{1}(Q_{\rm 1,max}),f_{2}(Q_{\rm 2,min}),f_{2}(Q_{\rm 2,max})\right\}, (54) equivalent to Eq. ( 18 ) of Sec. III-B. Appendix C. Extension to mixed state discrimination We extend the derivation introduced in Appendices A and B to discrimination between two mixed qubit states of Eq. ( 25 ), represented by the noncontextual model as \displaystyle p_{\rho}(\lambda|x)=\epsilon p_{\psi}(\lambda|x)+(1-\epsilon)\frac{p_{\psi}(\lambda|x)+p_{\psi^{\bot}}(\lambda|x)}{2}=\frac{1+\epsilon}{2}p_{\psi}(\lambda|x)+\frac{1-\epsilon}{2}p_{\psi^{\bot}}(\lambda|x), (55) with 0\leq\epsilon\leq 1 . Here, p_{\psi^{\bot}}(\lambda|x) is the state orthogonal to p_{\psi}(\lambda|x) in terms of the zero confusability: \int_{\mathrm{supp}[p_{\psi}(\lambda|x)]}d\lambda p_{\psi^{\bot}}(\lambda|x)=0 . The success probability of the discrimination is given by \displaystyle P_{\rm succ.}^{\rm(NC)} \displaystyle= \displaystyle q_{1}\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda p_{\rho}(\lambda|1)p_{\mathcal{M}}(1|\lambda)+q_{2}\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda p_{\rho}(\lambda|2)p_{\mathcal{M}}(2|\lambda) (56) \displaystyle= \displaystyle(1-Q)\left\{\frac{q_{1}(1-Q_{1}^{(\rho)})}{1-Q}\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda p_{\widetilde{\rho}}(\lambda|1)p_{\widetilde{\mathcal{M}}}(1|\lambda)+\frac{q_{2}(1-Q_{2}^{(\rho)})}{1-Q}\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda p_{\widetilde{\rho}}(\lambda|2)p_{\widetilde{\mathcal{M}}}(2|\lambda)\right\}, where Q_{x}^{(\rho)} and p_{\widetilde{\rho}}(\lambda|x) are defined as \displaystyle Q_{x}^{(\rho)}=1-\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda p_{\rho}(\lambda|x)\Pi(\lambda),\ p_{\rho}(\lambda|x)=\frac{p_{\rho}(\lambda|x)\Pi(\lambda)}{\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda p_{\rho}(\lambda|x)\Pi(\lambda)}=\frac{p_{\rho}(\lambda|x)\Pi(\lambda)}{1-Q_{x}^{(\rho)}}, (57) respectively. It is straightforward that the success probability of Eq. ( 56 ) is rewritten as \displaystyle P_{\rm succ.}^{\rm(NC)}=(1-Q)\Bigg[ \displaystyle\frac{q_{1}(1-Q_{1}^{(\rho)})}{1-Q}\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda\left\{\frac{1+\epsilon}{2}\frac{1-Q_{1}^{(\psi)}}{1-Q_{1}^{(\rho)}}p_{\widetilde{\psi}}(\lambda|1)+\frac{1-\epsilon}{2}\frac{1-Q_{1}^{(\psi^{\bot})}}{1-Q_{1}^{(\rho)}}p_{\widetilde{\psi}^{\bot}}(\lambda|1)\right\}p_{\widetilde{\mathcal{M}}}(1|\lambda) \displaystyle+ \displaystyle\frac{q_{2}(1-Q_{2}^{(\rho)})}{1-Q}\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda\left\{\frac{1+\epsilon}{2}\frac{1-Q_{2}^{(\psi)}}{1-Q_{2}^{(\rho)}}p_{\widetilde{\psi}}(\lambda|2)+\frac{1-\epsilon}{2}\frac{1-Q_{2}^{(\psi^{\bot})}}{1-Q_{2}^{(\rho)}}p_{\widetilde{\psi}^{\bot}}(\lambda|2)\right\}p_{\widetilde{\mathcal{M}}}(2|\lambda)\Bigg], (58) where p_{\widetilde{\psi}}(\lambda|x) and p_{\widetilde{\psi}^{\bot}}(\lambda|x) denote \displaystyle p_{\widetilde{\psi}}(\lambda|x) \displaystyle= \displaystyle\frac{p_{\psi}(\lambda|x)\Pi(\lambda)}{\int_{\mathrm{supp}[\Pi(\lambda)]}p_{\psi}(\lambda|x)\Pi(\lambda)}=\frac{p_{\psi}(\lambda|x)\Pi(\lambda)}{1-Q_{x}^{(\psi)}}, \displaystyle p_{\widetilde{\psi}^{\bot}}(\lambda|x) \displaystyle= \displaystyle\frac{p_{\psi^{\bot}}(\lambda|x)\Pi(\lambda)}{\int_{\mathrm{supp}[\Pi(\lambda)]}p_{\psi^{\bot}}(\lambda|x)\Pi(\lambda)}=\frac{p_{\psi^{\bot}}(\lambda|x)\Pi(\lambda)}{1-Q_{x}^{(\psi^{\bot})}}, (59) respectively. Both p_{\widetilde{\psi}}(\lambda|x) and p_{\widetilde{\psi}^{\bot}}(\lambda|x) are orthogonal to each other, as verified as \displaystyle\int_{\mathrm{supp}[p_{\widetilde{\psi}^{\bot}}(\lambda|x)]}d\lambda p_{\widetilde{\psi}}(\lambda|x)\propto\int_{\mathrm{supp}[p_{{\psi}^{\bot}}(\lambda|x)]\cap\mathrm{supp}[\Pi(\lambda)]}d\lambda p_{\psi}(\lambda|x)\Pi(\lambda)=0, (60) together with a simple set-theoretic identities \displaystyle\left\{\mathrm{supp}[p_{{\psi}^{\bot}}(\lambda|x)]\cap\mathrm{supp}[\Pi(\lambda)]\right\}\cap\mathrm{supp}[p_{{\psi}}(\lambda|x)]=\left\{\mathrm{supp}[p_{{\psi}^{\bot}}(\lambda|x)]\cap\mathrm{supp}[p_{{\psi}}(\lambda|x)]\right\}\cap\mathrm{supp}[\Pi(\lambda)]=\phi. (61) We assume the equal prior probabilities ( q_{1}=q_{2} ) to focus on the effect of the noise. It is rational to simplify Q_{x}^{(\psi)}=Q^{(\psi)} , Q_{x}^{(\psi^{\bot})}=Q^{(\psi^{\bot})} , and Q_{x}^{(\rho)}=Q^{(\rho)} for any x=1,2 when considering the balanced measurement. Then, the success probability of Eq. ( Appendix C. Extension to mixed state discrimination ) is simplified to \displaystyle P_{\rm succ.}^{\rm(NC)}=(1-Q)\Bigg[ \displaystyle\frac{q_{1}(1-Q^{(\rho)})}{1-Q}\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda\left\{\frac{1+f}{2}p_{\widetilde{\psi}}(\lambda|1)+\frac{1-f}{2}p_{\widetilde{\psi}^{\bot}}(\lambda|1)\right\}p_{\widetilde{\mathcal{M}}}(1|\lambda) \displaystyle+ \displaystyle\frac{q_{2}(1-Q^{(\rho)})}{1-Q}\int_{\mathrm{supp}[\Pi(\lambda)]}d\lambda\left\{\frac{1+f}{2}p_{\widetilde{\psi}}(\lambda|2)+\frac{1-f}{2}p_{\widetilde{\psi}^{\bot}}(\lambda|2)\right\}p_{\widetilde{\mathcal{M}}}(2|\lambda)\Bigg], (62) where f is the parameter defined as \displaystyle f=\frac{1+\epsilon}{2}\frac{1-Q^{(\psi)}}{1-Q^{(\rho)}}-\frac{1-\epsilon}{2}\frac{1-Q^{(\psi^{\bot})}}{1-Q^{(\rho)}}. (63) Now, we can use Eq. (22) of the previous work j.shin , together with Eqs. ( 39 ) and ( 63 ), to derive the inequality \displaystyle P_{\rm succ.}^{\rm(NC)} \displaystyle\leq \displaystyle(1-Q)\left\{\frac{1+f}{2}-\frac{f}{2}c_{\widetilde{\psi}_{1},\widetilde{\psi}_{2}}\right\} (64) \displaystyle= \displaystyle\frac{1+\epsilon}{2}(1-Q^{(\psi)})-\left\{\frac{1+\epsilon}{4}(1-Q^{(\psi)})-\frac{1-\epsilon}{4}(1-Q^{(\psi^{\bot})})\right\}\max\left\{\frac{c_{\psi_{1},\psi_{2}}-Q^{(\psi)}}{1-Q^{(\psi)}},0\right\}. The above inequality is satisfied by any Q^{(\psi)} and Q^{(\psi^{\bot})} , consequently leading to the upper bound of the success probability \displaystyle\bar{P}_{\rm succ.}^{\rm(NC)}=\max_{\begin{subarray}{c}0\leq Q^{(\psi)},Q^{(\psi^{\bot})}\leq 1\\ Q=\frac{1+\epsilon}{2}Q^{(\psi)}+\frac{1-\epsilon}{2}Q^{(\psi^{\bot})}\end{subarray}}\left[\frac{1+\epsilon}{2}(1-Q^{(\psi)})-\left\{\frac{1+\epsilon}{4}(1-Q^{(\psi)})-\frac{1-\epsilon}{4}(1-Q^{(\psi^{\bot})})\right\}\max\left\{\frac{c_{\psi_{1},\psi_{2}}-Q^{(\psi)}}{1-Q^{(\psi)}},0\right\}\right], (65) which is algebraically calculated as written in Eq. ( 28 ).