1. Introduction
Random numbers serve as indispensable resources in various technological domains, including cryptography, secure computation, and quantum protocols [
1]. In classical cryptographic frameworks, foundational protocols such as the Data Encryption Standard (DES) and Rivest–Shamir–Adleman (RSA) cryptosystems require random bit generation for cryptographic key establishment. In quantum cryptography, the BB84 quantum key distribution protocol relies critically on perfect random bits for secure basis selection and state encoding [
2]. However, conventional random number generators (RNGs) produce only pseudorandom sequences whose security fundamentally relies on trust assumptions regarding device integrity [
3]. Quantum mechanics provides a solution through its inherent non-determinism, enabling provably unpredictable randomness generation [
4]. Consequently, device-independent (DI) and semi-device-independent (SDI) quantum RNGs have emerged as transformative paradigms in quantum information science [
5,
6,
7,
8].
The DI framework, formally established by Ac’in and Colbeck [
9,
10], guarantees security based solely on observed measurement statistics (e.g., Bell inequality violations) without device characterization. In contrast, SDI protocols relax these requirements by assuming prior knowledge of the system dimension while remaining agnostic to other device specifications [
11]. Notably, the dimensionality of quantum systems can be experimentally determined through quantum dimension witnessing protocols [
12,
13]. This hierarchy of trust assumptions enables flexible implementations balancing security and practicality for next-generation randomness expansion protocols. Randomness expansion is a protocol that utilizes a small amount of initial randomness to generate a larger sequence of certified random numbers. In recent years, significant progress has been made in both DI and SDI frameworks. In the DI framework, pioneering work includes Colbeck’s genuine randomness expansion protocols based on GHZ tests for different randomness sources [
14,
15], and Pironio et al.’s protocol utilizing Bell inequality violations for randomness certification [
16]. Coudron et al. presented a method achieving unbounded randomness expansion [
17]. The development of SDI protocols has opened new research directions. Li et al. first proposed quantum random access code (QRAC)-based randomness expansion protocols in the SDI framework, rigorously proving that perfect random seeds can generate fresh randomness [
18,
19]. Zhou et al. subsequently extended this work by investigating protocols with partially free randomness sources under the SDI framework [
20,
21,
22,
23].
QRAC is a crucial tool in studying SDI quantum randomness expansion protocols. The study of QRACs in higher-dimensional Hilbert spaces and sequential QRACs have propelled the development of multi-party quantum randomness expansion protocols [
24,
25,
26,
27,
28,
29]. As a specialized variant of QRAC, parity-oblivious QRAC (PO-QRAC) introduces a critical constraint: the encoded quantum states must conceal parity information of the input classical bits, thereby addressing vulnerabilities in conventional QRACs that inadvertently leak global properties such as parity checks [
30]. In a conventional
RAC, Alice can effectively leak one of her input bits in clear form by embedding it directly into the transmitted state, allowing Bob to recover that bit with certainty. To eliminate this trivial information pathway, the parity-oblivious constraint demands that no parity of Alice’s input string may be learned from the communicated quantum states [
31]. This requirement ensures that, regardless of Bob’s measurement strategy, the transmitted system carries no information about any parity bit—thereby precluding any classical “backdoor” and sharpening the focus on genuinely nonclassical, preparation-contextual advantages [
32].
In quantum randomness expansion protocols, employing PO-QRACs prevents collusion among the parties and thereby enables the extraction of greater amounts of certifiable randomness. We introduce a randomness expansion based on the PO-QRAC and, for , explicitly construct the corresponding two-dimensional quantum witnesses that certify quantum advantage. Finally, we derive an analytic relation between the quantum witness and the certifiable min-entropy, quantifying how the degree of witness violation translates into fresh randomness.
The remainder of this paper is organized as follows. In
Section 2, we present the formal model of the proposed
PO-QRAC protocol and define the parity-obliviousness constraint.
Section 3 derives the optimal classical success probability under this model and identifies the best parity-oblivious classical codes. In
Section 4, we compute the maximum expected success probability in the quantum scenario for each
n and verify when a quantum witness violation occurs.
Section 5 analyzes the relationship between quantum witness and the certifiable randomness in the resulting randomness-expansion protocol, comparing our PO-QRAC–based schemes against standard QRAC–based approaches. Finally, we present our conclusion in
Section 6.
2. Model Description
We begin by introducing the SDI randomness expansion model. The SDI framework requires that the quantum system be entanglement-free and imposes no assumptions on any parameters beyond the Hilbert space dimensionality. Our model is based on the
QRAC in a two-dimensional Hilbert space
, which comprises two black-boxes: the preparation party (Alice) and the measurement party (Bob). As shown in
Figure 1, Alice randomly selects a bit string
, encodes it into a quantum state
, and transmits it to Bob. Upon receiving
, Bob performs a measurement defined by the POVM measurement
where
, and subsequently outputs the measurement result
.
Through multiple repetitions of the procedure, we evaluate the expected success probability
where success is defined as the event that Bob employs the y-th measurement
and obtains an outcome
b matching the
y-th bit of the input string
x. We construct the two-dimensional quantum witness using the expected success probability.
The expected success probabilities, denoted as
(classical) and
(quantum), characterize the performance bounds in the respective scenarios. When the experimentally observed success probability
exceeds the classical upper bound
, this provides a statistical proof of the system’s ability to generate certified quantum randomness. The output sequence
can then undergo quantum-proof entropy distillation to extract randomness that is information-theoretically secure. In this paper, we use the min-entropy function to quantify the randomness:
We now introduce the concept of PO-QRAC in detail. The parity-obliviousness constraint enforces that Bob cannot obtain any parity information about the input bit string
. Following reference [
30], we define the parity-oblivious constraint set as
This leads to the quantum state constraint:
where ⨁ denotes modulo-2 summation.
3. The Maximum Expected Success Probabilities for the PO-RACs
In this section, we analyze the maximum expected success probability
for classical
parity-oblivious random access codes (PO-RAC). For the classical standard
RAC, the optimal encoding scheme
is given by the Hamming threshold function:
where
denotes the Hamming weight of
x. The corresponding optimal decoding scheme is characterized by the identity decoding strategy. According to [
33], the maximum expected success probability for classical standard
RAC is given by
The incorporation of the parity-obliviousness constraint necessitates modifications to the optimal encoding scheme for standard RAC. For , the parity-oblivious set is defined as . This imposes the following linear constraint on the encoding function: =. A valid resolution satisfying this constraint is , . Remarkably, this constrained encoding preserves the maximum expected success probability , identical to the standard RAC.
For , the parity-obliviousness constraint alters the maximum expected success probability of RACs compared to their standard counterparts.
In the case of
, the parity-oblivious set is defined as
, corresponding to all non-trivial parity functions over three-bit strings. To satisfy this constraint while maintaining near-optimal performance, we refine the encoding scheme in Equation (
5) through strategic input reclassification, i.e.,
and
, while preserving the Hamming weight threshold rule for other inputs. The computational result demonstrates that the
PO-RAC achieves a maximum expected success probability of 2/3, which is less than the
of the standard
RAC.
In the case of , the parity-oblivious set is defined as . To reconcile this constraint with near-optimal performance, we encode the four-bit strings based on the value of the leading bit . Then, the maximum expected success probability for the PO-RAC is 5/8.
4. The Maximum Expected Success Probabilities for the PO-QRACs
This section establishes the theoretical maximum of the expected success probabilities for PO-QRACs. Within the quantum information framework, the encoding states employed in our protocol must rigorously adhere to the parity-oblivious constraint, ensuring that no measurable information about parity correlations can be extracted through quantum measurements.
For
, the parity-oblivious constraint manifests as
. Remarkably, the optimal standard
QRAC satisfies this condition through its symmetric encoding. We implement the following quantum scheme:
and
We obtain the expected success probability as follows:
This scheme is also optimal for
PO-QRAC, establishing the maximum expected success probability as
.
For
, the parity-oblivious constraint corresponding to
is satisfied if
. Similarly, three conditions can be obtained for
,
, and
. We represent the pure quantum state
as a linear combination of Pauli matrices:
where
is the Bloch vector for
, and
. Each pure state corresponds to a Bloch vector on the unit sphere, enabling the success probability to be expressed in terms of vector inner products. To maximize the expected success probability, the Bloch vectors must satisfy the antipodal condition:
=
, where
denotes the bitwise negation of
x. The parity-oblivious constraint translates into solving the following system of equations:
Given the antipodal condition, we only need to consider Equation (
15), reducing the constraint to
. The Bloch vector parameterization for quantum state preparation in the
PO-QRAC is expressed as
with angular parameters constrained by
and
for
. The parity-oblivious condition imposes the following nonlinear constraints:
For the measurement operators, we parameterize the POVM measurements through their Bloch vectors
where
. Under the conventional coordinate alignment, we let
, then
. This choice establishes the reference frame without loss of generality, simplifying the subsequent optimization problem. More precisely, the maximum expected success probability
for the
PO-QRAC is formally characterized by the following constrained optimization problem:
Through numerical optimization using semidefinite programming, we determine that
= 0.7887. Under this configuration, where
,
, and
the theoretical upper bound of
is achieved. The three POVM measurements correspond to three mutually orthogonal pairs of antipodal Bloch vectors. This arrangement achieves the fundamental geometric limit for two-dimensional quantum systems. Specifically, in any qubit Hilbert space, the orthogonality-dimension complementarity principle dictates that no more than three mutually orthogonal vector pairs can coexist.
For
, the parity-oblivious constraint set
comprises 11 elements, each corresponding to a distinct non-trivial parity function. Under the antipodal condition, the analysis reduces to considering only those parity constraints with elements of
satisfying
is odd. We thus define a refined parity-oblivious constraint set
, specifically comprising 0111, 1011, 1101, and 1110. Then, the parity-oblivious constraint translates into solving the following system of equations:
Following algebraic simplification of the constraint equations (Equations (
22)–(
25)), we derive the reduced system:
where
denotes a fixed reference vector. Equations (
26) and (
27) reveal that the eight unit vectors geometrically constitute an equidiagonal parallelepiped, which is tangent to the unit Bloch sphere.
,
,
, and
form a rectangle lying on a circle of the Bloch sphere, see
Figure 2.
Under the above genetic conditions, we define the vector
as
where
and
. The other encoded quantum states are determined based on
.
Given the fundamental geometric constraint that a two-dimensional Hilbert space permits at most three mutually orthogonal measurement bases, our protocol strategically duplicates one measurement basis to accommodate the fourth required setting in the
PO-QRAC optimization. Following the optimal QRAC configuration framework, we intentionally align the fourth measurement basis with one of the three existing orthogonal pairs. Without loss of generality, we implement the following Bloch vector assignments:
The expected success probability
for the
PO-QRAC can be written as
By varying the spherical coordinate parameters
and
, we characterize the functional relationship between these angular variables and the expected success probability
of the
PO-QRAC. Numerical optimization reveals a global maximum of
at
and
, corresponding to a geometrically optimal Bloch vector configuration. The dependence of
on
, and
is fully mapped in
Figure 3.
The above result demonstrates an enhancement over the previously reported bound of
in [
31], while rigorously satisfying the parity-obliviousness constraint. However, the result falls short of the theoretical upper bound
for the
PO-QRAC reported in [
32]. Achieving that bound in a qubit system would require constructing four mutually complementary measurements, yet any qubit admits at most three such measurements, corresponding to the three Pauli matrices. To reach
, one must upgrade the protocol to a four-dimensional Hilbert space, where the necessary observables can be built from the generalized Gell-Mann matrices. In that setting, the scheme becomes a
PO-QRAC and can attain the theoretical maximum.
5. Randomness Certification
Following the analytical determination of maximum success probabilities for PO-QRACs with , we now investigate the certifiable randomness generated by quantum randomness expansion protocols based on this family of quantum access codes. The two conditions that must be met in order to generate fresh randomness are as follows:
Violation of a quantum witness, i.e., , where is the quantum expected success probability and denotes the classical bound.
The min-entropy of the output bit must be strictly positive, i.e., .
As demonstrated in our prior analyses, the maximum expected success probabilities of PO-QRACs for exceed their respective classical bounds, thereby satisfying the first criterion for randomness generation. We now characterize the parametric conditions under which the second critical requirement is fulfilled.
We now proceed to establish a lower bound on the min-entropy conditioned on the expected success probability
of the
PO-QRAC, which can be obtained by solving the following optimization problem:
Following Equation (
2), the optimization problem can be reformulated as maximizing the conditional probability
for a given target expected success probability
. In the optimization problem, the set of achievable pairs
forms a concave region. Consequently, the function
f that returns the maximal value of
for a fixed
coincides with the inverse mapping that returns the maximal
for a fixed
. We then derive
by solving the following optimization:
where
p is the fixed maximum probability value.
For
, we define
and
,
. Without loss of generality, let
and set the corresponding Bloch vector
, where
. To maximize the value of
, the optimal preparations for the remaining inputs are
Finally, enforcing parity-obliviousness requires
.
We derive the expected success probability
as
The inverse function
is correspondingly given by
where
denotes the critical point that extremizes
with respect to
and
.
The relationship between the min-entropy bound
and the expected success probability
for the
PO-QRAC is plotted in
Figure 4. The result shows that the integration of parity-oblivious constraints into the randomness expansion protocol enables the generation of certifiable randomness at an enhanced rate.
For the case of
, to ensure
, the measurements are defined as
where
,
. Assuming that
, the states can be defined as
where
. We can derive the inverse function
as
where
denotes the extreme point of
with respect to
and
. The optimization process must strictly maintain the balance equation
.
The relationship between the min-entropy bound
and the expected success probability
for the
PO-QRAC is plotted in
Figure 5. Our analysis reveals that the quantum randomness expansion protocol based on the
PO-QRAC achieves a higher certified randomness generation rate compared to its
PO-QRAC counterpart.
The proposed
PO-QRAC-based randomness expansion protocol achieves a higher certified min-entropy compared to conventional QRAC implementations at identical quantum witness values
. Additionally, the results presented in
Section 4 demonstrate that the
PO-QRAC achieves the maximum quantum success probability among all investigated configurations. This optimal performance simultaneously maximizes the certifiable min-entropy. Crucially, SDI randomness expansion protocols utilizing
PO-QRAC outperform both
and
variants in entropy generation efficiency, establishing it as the optimal protocol configuration for quantum randomness expansion under parity-oblivious constraints.
6. Conclusions
We have investigated randomness-expansion protocols based on the
PO-QRACs. After introducing the protocol model, we derived tight upper bounds on the maximum success probability in both the classical and quantum settings. Our analysis shows that for
, the PO-QRAC always outperforms its classical counterpart, making it a viable primitive for SDI randomness expansion. Remarkably, in the case of
, the quantum bound under the parity-oblivious constraint even exceeds the limit reported in [
31]. However, for
, no two-dimensional PO-QRAC can attain the theoretical maximum of 0.75 derived by [
32], since that bound demands the existence of
n mutually unbiased bases in a qubit system, which is impossible. Finally, we established an analytic relation between the quantum witness
and the certifiable randomness (min-entropy) in these protocols. Numerically, we find that for
, PO-QRAC-based expansion certifies strictly more randomness than standard QRAC-based schemes at the same
value, demonstrating the advantage of enforcing parity obliviousness. The SDI randomness expansion protocol constructed using the
PO-QRAC represents the optimal implementation framework for quantum randomness expansion under parity-oblivious constraints.