Benchmarking of quantum protocols

Quantum network protocols offer new functionalities such as enhanced security to communication and computational systems. Despite the rapid progress in quantum hardware, it has not yet reached a level of maturity that enables execution of many quantum protocols in practical settings. To develop quantum protocols in real world, it is necessary to examine their performance considering the imperfections in their practical implementation using simulation platforms. In this paper, we consider several quantum protocols that enable promising functionalities and services in near-future quantum networks. The protocols are chosen from both areas of quantum communication and quantum computation as follows: quantum money, W-state based anonymous transmission, verifiable blind quantum computation, and quantum digital signature. We use NetSquid simulation platform to evaluate the effect of various sources of noise on the performance of these protocols, considering different figures of merit. We find that to enable quantum money protocol, the decoherence time constant of the quantum memory must be at least three times the storage time of qubits. Furthermore, our simulation results for the w-state based anonymous transmission protocol show that to achieve an average fidelity above 0.8 in this protocol, the storage time of sender’s and receiver’s particles in the quantum memory must be less than half of the decoherence time constant of the quantum memory. We have also investigated the effect of gate imperfections on the performance of verifiable blind quantum computation. We find that with our chosen parameters, if the depolarizing probability of quantum gates is equal to or greater than 0.05, the security of the protocol cannot be guaranteed. Lastly, our simulation results for quantum digital signature protocol show that channel loss has a significant effect on the probability of repudiation.


Introduction
In recent years, quantum technologies have seen significant advancements [1][2][3][4] .The rapid development in quantum hardware components such as single-photon detectors and quantum memories promises a vision of small-scale and large-scale quantum networks with real world applications [5][6][7] .Quantum networks offer new functionalities and services that are not possible in their classical counterpart.Prominent examples are secure communication and computation enabled by quantum cryptography, quantum secure direct communication (QSDC), blind quantum computing and distributed secure quantum machine learning 3,[8][9][10][11][12][13][14][15] .Whereas quantum networks are not meant to replace existing classical ones, they have a great potential to extend the capabilities of classical networks.
Quantum protocols, as the use cases of quantum networks, offer unique communication and computation features.The most well-known example is quantum key distribution (QKD), which provides forward secrecy.Moreover, quantum cryptographic protocols such as quantum money and quantum digital signature (QDS) enable guaranteeing unforgeability with desired security level [16][17][18][19][20] .Another significant example is verifiable blind quantum computation (VBQC), which enables delegated quantum computation while preserving privacy 21,22 .Whereas the advantages offered by these protocols are promising, their commercial deployment requires several steps to be taken.
One major requirement in the development of quantum protocols in real world is the evaluation of their performance in various aspects such as security, required resources, and scalability.Such detailed performance analysis is required to include different sources of imperfection in the practical implementation.This type of benchmarking is mainly important due to the gap between the analyses provided by the academia community in the proposed theoretical protocols and the requirements recommended by experimentalists.Furthermore, it will provide us a tool to compare different quantum protocols with the same functionality proposed in the literature, e.g., different quantum token protocols.Such comparison is crucial in determining the commercial applications and use cases of quantum protocols.
Another prerequisite for commercial deployment of quantum protocols is to benchmark them against classical and postquantum protocols with the same functionality.For instance, it would be desirable to compare QKD to symmetric key encryption methods in terms of security, required resources, scalability, and forward secrecy.Another significant example is quantum secure multi-party computation (SMPC) 23 , and its benchmarking against classical SMPC.While this type of benchmarking is of paramount importance, it requires the data provided by the evaluation of quantum protocols in practical settings.
The two types of benchmarking mentioned above, are crucial prerequisites for designing quantum networks.Quantum networks require classical communication for various purposes such as synchronization and control messages.Besides, some quantum protocols, e.g., anonymous transmission, consist of intertwined quantum and classical sub-algorithms.Such integration of quantum and classical building blocks requires a detailed analysis of the interaction between them.In particular, any error or delay in classical communication may adversely affect the performance of quantum sub-algorithms.For instance, the delay in classical messages may increase the decoherence of quantum states in quantum memories.Therefore, to design quantum networks efficiently, it is necessary to determine the impact of classical messages/sub-algorithms involved in the quantum protocols.
One approach to benchmark quantum protocols is to investigate their performance considering fixed values for system parameters and desired figures of merit.This method will help us to evaluate the effect of specific protocol/hardware parameters and examine the feasibility of practical implementation considering currently achievable parameter values.Another method for benchmarking of quantum protocols is to consider target values for our desired figures of merit and determine the minimum requirements at the hardware level to achieve them.This method, previously proposed in 24 , enables us to optimize system parameters and determine minimum viable requirements to achieve specific target values for figures of merit.We refer to this method as backward benchmarking.In this paper, we mainly focus on the first method of benchmarking.Nevertheless, we provide an example of backward benchmarking by adapting this method for quantum money protocol.
NetSquid is a software tool which provides a platform for simulating quantum networks and quantum computing systems 25 .This software enables simulation of quantum networks considering various aspects such as physical layer characteristics and control plane.The design of NetSquid is based on discrete-event simulation, which provides us a powerful tool to simulate the decoherence of quantum states by time and analyse the noise in quantum systems accurately.For instance, time-dependent noise affecting the quantum states stored in a quantum memory can be simulated effectively.
In this paper, we use NetSquid to simulate several quantum protocols and analyse their performance in the presence of various imperfections in the system.In the following sections, benchmarking of quantum money protocol, W-state based anonymous transmission, VBQC, and QDS are presented.Moreover, we provide an example of the backward benchmarking by applying this method to quantum money protocol.

Benchmarking of quantum money protocol
Private-key quantum money with classical verification enables a trusted bank to provide unforgeable banknotes to clients.Here, we consider the quantum money protocol proposed in 16 .The steps of the protocol are as follows: 1) Bank randomly chooses n qubit pairs from the following set: and sends them as banknote to the client.
2) Client stores the received qubits in quantum memory.
3) Client waits for T seconds.Then, she allows the verifier to access the banknote.
4) The verifier randomly chooses between the two bases X and Z, and measures all 2n qubits in the chosen basis.5) Bank and verifier communicate via a classical channel and check the measurement outcomes.If the number of valid outcomes from the qubits in the chosen basis is larger than a predetermined threshold, bank verifies the validity of the banknote.
In a practical implementation of this protocol, various sources of loss and noise adversely affect the performance of the system.Table 1 shows major sources of loss and noise for this protocol.

Probability of correctness
One of the main figures of merit for this protocol is the probability of successful verification assuming an honest client.This parameter characterizes how system imperfections lead to rejection of the banknote in the verification phase wrongly.In 16 , it has been shown that the lower bound for this parameter is given by where c is the probability of successful verification assuming an honest client, for mini-scheme quantum money protocol with just one qubit pair (for more details please refer to 16 ).The parameter δ is defined as It is worth noting that if c > 0.875 the security of the protocol can be guaranteed.

Probability of forge
Another figure of merit for this protocol is the probability of successful forging, e.g., duplication of the banknote by a dishonest client.An upper bound for this parameter is given by 16

Simulation results
We use NetSquid to simulate the quantum money protocol explained above.In particular, our goal is to investigate the effect of quantum memory and measurement error on the performance of this protocol.Hence, we do not consider any source of loss.Simulation parameters are chosen based on currently achievable hardware parameters in nitrogen-vacancy (NV) center implementation.We assume T1T2 noise model with T 1 = 10 hours and T 2 = 1s 25 , where T 1 and T 2 denote the decay time constant of the quantum memory and the decoherence time constant of the quantum memory, respectively.Measurement error has been modelled with p 1 = 0.05 and p 2 = 0.005, where p 1 is the probability that a measurement result 0 is flipped to 1, and p 2 is the probability that a measurement result 1 is flipped to 0 25 .
To evaluate the performance of the system, in the first step we obtain the parameter c by simulation.The parameter c is then used to calculate the security bounds for P correct and P forge .To obtain c by simulation, a block of 10000 qubit pairs is sent and the simulation is repeated ten times to achieve better accuracy.The parameter c is then given by N valid /N detected , where N valid is the number of valid outcomes corresponding to the qubits in the chosen basis, and N detected denotes the number of detected outcomes corresponding to the qubits in the chosen basis.
Figure 1 shows c for different values of client wait time, T .The error bars corresponding to a confidence level of 95% are also shown in the figure.The blue dashed line shows the threshold 0.875.The parameter T characterizes any delay in the system before measuring the qubits; hence it is equal to the storage time of qubits in the quantum memory.Note that for a quantum memory with parameters T 1 and T 2 , a longer storage time results in a higher decoherence noise and a lower c.It can be seen that for T larger than about 0.3 s the protocol is not guaranteed to be secure anymore.This value is about one third of T 2 = 1s.This shows that minimizing the storage time of qubits in the quantum memory is crucial in the practical implementation of this protocol.In order to evaluate the required number of qubit pairs to achieve a specific security level, the parameters P correct and P forge , for T = 0.01 s and T = 0.1 s are shown in figure 2. According to Fig. 1, the security of the protocol is guaranteed in these two values of T .We consider the threshold 10 −7 for P forge .To achieve this threshold, the number of qubit pairs is required to be larger than about n = 2.3 × 10 4 for T = 0.01 s, whereas for T = 0.1 s, the minimum required n increases to 5.4 × 10 4 .This implies that the storage time of qubits has a huge effect on the minimum qubit pairs required to achieve a specific security level.For more details on NetSquid simulation for this protocol please refer to Appendix D (Supplementary Information).

Benchmarking of W-state based Anonymous Transmission
Anonymous transmission addresses the issue of concealing the identity of two communicating nodes in a quantum network with N nodes.More specifically, the identity of the sender S is required to be unknown to all other nodes in the network, whereas the identity of the receiver R is hidden to all other parties except the sender.In this section, we consider W-state based anonymous transmission protocol 26 .This protocol is mainly based on the establishment of anonymous entanglement between S and R. The entangled state between S and R is then used to teleport the desired state.Figure 3 shows the general description of this protocol.At the first step, collision detection and receiver notification protocols 27 are used to determine a single sender S and notify the receiver R, respectively.Then, W state is generated and distributed among the users.In the next step, all users except for S and R perform measurement in the standard basis, while S and R keep their particles in the quantum memory.Measurement outcomes are, then, used in veto protocol 27 , which determines whether all N − 2 outcomes are zero or not.In the latter case, the protocol aborts, while in the former case, it is assumed that anonymous entanglement is established between S and R. In that case, the protocol proceeds with the teleportation of the state |ψ .To this aim, S performs Bell state measurement and sends the two classical outcomes anonymously to R using logical OR protocol.The receiver R, then, uses this information to perform suitable quantum post-processing on his qubit.
To evaluate the performance of the protocol in the presence of system imperfections, it is necessary to consider major sources of loss and noise in the system, as summarized in Table 2.One major source of noise is the delay caused by classical sub-algorithms.During the run time of veto protocol, the particles of S and R are stored in the quantum memory, which introduces decoherence to the particles.Quantum memory noise also affects R's particle during the run time of logical OR protocol.Imperfect operation of quantum gates in the quantum post-processing step also introduces some noise in the system.Another source of noise is nonideal generation and distribution of W state, which is investigated in 26 .Aside from these nonidealities, losses in the system such as transmission loss (e.g.optical fibre loss) and the loss introduced by quantum memory may also adversely affect the performance of the protocol.
In the following, we consider several figures of merit for this protocol and investigate them in more details.

Figures of merit probability of protocol failure
W-state based anonymous transmission protocol is probabilistic 26 , i.e., anonymous entanglement is established between S and R with some probability.Aside from that, losses in the system may cause the protocol to fail.In 26 , it has been shown that this protocol tolerates one nonresponsive node among N − 2 nodes (all nodes except S and R).Nevertheless, if S or R lose their where A is the event that at least one of measurement outcomes (inputs of veto protocol) is not zero, B is the event that all N − 2 nodes that perform measurement are responsive, C is the event that just one out of N − 2 nodes that perform measurement is nonresponsive, and D is the event that both S and R does not lose their particle.The probability Pr(B) can be obtained by where η i is the transmittance corresponding to the ith node.Similarly, the probability Pr(C) can be expressed as The parameter Pr(D) is given by where η BSM denotes the loss introduced by Bell state measurement.The probabilities Pr(A|B) and Pr(A|C) are calculated in Appendix A (Supplementary Information).

5/16 probability of correctness
Probability of correctness is defined as the probability of successful teleportation of the state |ψ , under the assumption that all participants are honest and the protocol does not fail.We can write this parameter as follows: In the above equation, ε corr represents the probability of failure in classical subroutines 26 .

Fidelity of anonymous entanglement between S and R
The fidelity of the entangled state established between S and R is another important figure of merit for this protocol.This parameter is defined as where γ is the anonymous entangled state between S and R and

Average fidelity of the teleported state
The goal of anonymous transmission protocol is to transmit a quantum state anonymously.Therefore, one of the most important figure of merits is the quality of the teleported state, which can be characterized by average fidelity.We write the quantum state to be teleported as a Bloch vector in Bloch sphere as follows: where θ and φ denote the polar and azimuthal angles, respectively.The average fidelity of the teleported state is given by 28 where In the above equation, ρ out denotes the density matrix for the teleported state corresponding to |ψ .

Simulation results
In this section, we present some simulation results for anonymous transmission protocol.We use NetSquid to simulate this protocol for four users.The average fidelity of the teleported state (equation ( 12)) is approximated using Reimann sum as follows: where θ k = π 160 + k π 80 , and φ m = π 80 + m 2π 80 , for k = 0, 1, 2, ..., 79 and m = 0, 1, 2, ..., 79.First of all, the effect of the noise introduced by quantum memories on the quality of the teleported state is evaluated.We assume that the particles of S and R are stored for the time duration of t 1 before teleportation.R's particle is assumed to be kept in the quantum memory for an additional time interval of t 2 , i.e., total storage time for R's particle is t 1 + t 2 .We consider dephasing noise model for quantum memories.The dephasing probabilities for S's and R's quantum memories are denoted by q 1 and q 2 , respectively.The parameters q 1 and q 2 correspond to t 1 and t 1 + t 2 , respectively.
Figure 4 shows F ave for different values of q 1 and q 2 .The fidelity of the anonymous entangled state, F(γ), corresponding to each value of q 1 is also obtained by 26 and shown in Fig. 4. It can be seen that for q 1 = 0.2, the average fidelity of teleported state is already less than 0.8.With the assumption of q 1 = (1 − e −t 1 /T 2 )/2, where T 2 is the decoherence time constant of the quantum memory, this value corresponds to t 1 /T 2 = 0.51.This implies that it is crucial to minimize the delay caused by veto protocol as much as possible.
It is worth noting that if q 2 = q 1 , there is no noise after Bell state measurement.In this case, we can analytically calculate F ave from F(γ) using the formula F ave = (2F(γ) + 1)/3 29 .It can simply be concluded that the analytical results obtained by this formula validates the simulations results for the cases q 2 = q 1 in Fig. 4.  Next, we evaluate the performance of the protocol in the presence of noise at the X and Z gates in the final step of the teleportation.We consider two noise models, dephasing and depolarizing, with dephasing/depolarizing probability denoted by q. Figure 5 shows F ave versus q.It can be seen that the average fidelity of the teleported state in case of dephasing noise model is significantly higher than that of depolarizing noise model, especially for large values of q.As an example, in case of dephasing noise, for q smaller than about 0.15, F ave is above 0.9, whereas in case of depolarizing noise we achieve this performance for q smaller than about 0.075.It is worth noting that the results presented in this section are independent of the number of users, N, since the sources of noise after measurement by all users except S and R are considered.For more details on NetSquid simulation for this protocol please refer to Appendix D (Supplementary Information).

6/16
Lastly, we present a numerical example to examine the effect of sources of loss in the system on the probability of protocol failure.We assume η d = η BSM = 0.8, where η d denotes the measurement loss for each of N − 2 users.The transmittance corresponding to ith node (except S and R is, then, assumed to be η i = η d η tr ), where η tr represents transmission loss.The loss introduced by quantum memories is modelled by η qm = η 0 e −t s /T 1 .Here, T 1 denotes decay time constant of quantum memory, t s denotes the storage time, and η 0 is a constant less than one.The parameter η 0 is assumed to be 0.8.The ratio t s /T 1 is assumed to be 0.002 for sender, and 0.004 for receiver.
Figure 6 shows the probability of protocol failure versus transmission loss for different values of N. It can be seen that the probability of protocol failure increases with the increase of number of users.For N = 4, this probability reaches one for transmission of loss about 10 dB.This value reduces to about 8 dB and 5.5 dB for 6 and 8 users, respectively.
In Appendix A (Supplementary Information), two cases of ideal W state and noisy W state with dephasing noise model are considered.It has been shown that dephasing noise does not change the probabilities Pr(A|B) and Pr(A|C) in ( 5) compared to that of noiseless case.Hence, the presented results in Fig. 6 are applicable to noisy W state with dephasing noise model as well.

Benchmarking of verifiable blind quantum computation
VBQC enables delegating quantum computation to a quantum server while preserving privacy 30 .In this paper, we choose the measurement-based VBQC protocol proposed in 30 .The steps of the protocol are outlined in Appendix B (Supplementary Information).We assume that three qubits are used at the server side.This protocol consists of d computation runs and t test runs.If the number of failed test runs is larger than a threshold denoted by w, the protocol aborts.
The main sources of noise in this protocol are imperfect operation of quantum gates and measurement errors.Aside from that, classical communication between client and server may introduce some delay, which substantially causes decoherence.Lastly, transmission loss may be troublesome, depending on the distance between client and server.In the following, two figures of merit for this protocol are presented.

Figures of merit
The probability of aborting assuming an honest server is one of the main figure of merits for this protocol.Suitable choice of protocol parameters such as w and t plays an important role in avoiding unnecessary aborting of the protocol while maintaining the security.
Another figure of merit for this protocol is probability of correctness, which is defined as the probability of correct output assuming the protocol does not abort.

Simulation results
In this subsection, we examine the performance of VBQC protocol in the presence of system imperfections.We use NetSquid to simulate the VBQC protocol outlined in Appendix B (Supplementary Information).We assume that the server has three qubits.Nominal values used for time duration of gates are listed in Table 3.These parameters are chosen based on the NV platform implementation 25 .We assume depolarizing noise model for the quantum gates.In our simulation, we assume that the depolarizing probability in quantum gates are identical.This provides us a benchmark for the performance of the protocol.As for measurement error, we use the bit flip model used in 25 .We assume that the measurement outcome 0 is flipped to 1 with probability 0.05, whereas the measurement outcome 1 is flipped to 0 with probability 0.005.
First of all, we evaluate the performance of a test run.We consider different values for depolarizing probability in quantum gates.In each case, the test run is performed for 3000 times and the probability of failure of a test run is calculated, as shown in Fig. 7.The upper and lower bounds for this probability, denoted by P max and P min , respectively, depend on the desired confidence level.Here, the results for two confidence levels 95% and 99.95% are shown in Fig. 7.
We use the obtained values for P max and P min to determine the suitable range of values for w/t.In 30 , it has been shown that if w/t > P max , the protocol is ε c -locally-correct with exponentially low ε c , i.e., with honest parties the output will be the expected one.On the other hand, according to 30 , in order for the protocol to be secure, w/t should be less than 1/2k, where k is the number of colouring in the protocol (for more information please refer to 30 ).In our simulated protocol with a three-qubit server, k = 2. Hence, we have P max < w/t < 0.25.The threshold 1/2k = 0.25 is shown in Fig. 7 by the blue dashed line.It can be seen from fig. 7 that with our chosen parameters, for a depolarizing probability of 0.05, there is no acceptable value for w/t.If the depolarization probability is reduced to 0.03, it is feasible to choose parameter values satisfying P max < w/t < 0.25.Nevertheless, there are limited acceptable values for parameters w and t.To extend the range of acceptable parameter values and have more flexibility in choice of protocol parameters, it is necessary to enhance the depolarization probability of quantum gates beyond 0.03.
In order to obtain the optimum values for the protocol parameters w, t, and d, it is required to solve the optimization problem mentioned in 30 , which is beyond the scope of this paper.Nevertheless, we provide an example by considering a depolarizing probability of 0.03 and w = 1.With these values, the only acceptable value for the number of test runs is t = 5.We run the protocol for 3000 times with 5 test runs and 6 computation runs.The resulting probability of correctness is 0.929 ± 0.0092, considering a confidence level of 95%.For more details on NetSquid simulation for this protocol please refer to Appendix D (Supplementary Information).

Benchmarking of quantum digital signature
QDS schemes can guarantee the unforgeability, nonrepudiation, and transferability of a signed message with informationtheoretical security.Here, we consider the three-party QDS protocol proposed in 19 .The protocol is outlined Appendix C (Supplementary Information).
In the practical implementation of this protocol, various imperfections such as transmission loss and measurement error may adversely affect the performance of the protocol.In the following, the figures of merit for this protocol are discussed.

Figures of merit
We can define three main figures of merit for the security of this protocol.First of all, the probability of aborting under the assumption that all three parties are honest characterizes the robustness of the protocol.Another figure of merit is the probability of successful forging the signature by Bob.The third security criteria is the probability of repudiation, i.e., the probability that the signature sent by Alice is accepted by Bob, but when Bob forwards it to Charlie it is rejected.We denote the security bounds on these three probabilities by P abort , P for , and P rep , respectively.The security level of the protocol is then defined as β = max{P abort , P for , P rep }.

Simulation results
In this subsection, the simulation results for the quantum digital signature protocol described in Appendix C (Supplementary Information) are presented.The number of transmitted qubits is assumed to be 5 × 10 4 .We assume Alice and Bob are connected via an optical fibre with length L fib .Similarly, the distance between Alice and Charlie is L fib .The total loss of the system (excluding the loss of the optical fibre) is assumed to be 0.5.The attenuation coefficient of the optical fibre is 0.2 dB/km.We set the protocol parameters ε, ε PE , a and r as ε = 10 −10 , ε PE = 10 −5 , = 10 −5 , and r = 0.1.Here, ε PE is the failure probability in calculating the upper bounds for error rates, r is the fraction of sifted key used in error estimation, and a and ε are small constants.For more information on these parameters please refer to Appendix C (Supplementary Information).
We consider different values for the length of optical fibre and evaluate the performance of the system in the presence of channel loss.Furthermore, two cases for the error in the measurement setup, denoted by e d , are considered.The first case is the ideal case where there is no error, whereas in the second one e d = 0.015.
According to equation (8) in Appendix C, we have P abort = 2ε PE = 2 × 10 −5 .As for P for , our results show that P for = 10 −4 for all cases.This is mainly because for our chosen parameter values, l is sufficiently large such that ε F ε/a = 10 −5 .
Table 4 shows the parameter P rep for different values of L fib and e d .It can be seen that as fibre length increases, the security bound for probability of repudiation increases significantly.This mainly happens due to the reduction of the number of received signals, which results in a shorter signature.Hence, P rep increases according to equation (9) in Appendix C (Supplementary Information).Additionally, a shorter raw key leads to more statistical fluctuations in the estimation of error parameters (see Appendix C (Supplementary Information)), which results in a larger P rep .For more details on NetSquid simulation for this protocol please refer to Appendix D (Supplementary Information).

Backward benchmarking
In the previous subsections, we presented a benchmarking method for quantum protocols based on determining fixed values for system parameters and evaluating the performance of the protocol considering various figures of merit.Another method to benchmark quantum protocols is to consider target values for figures of merit and optimize system parameters with the aim of minimizing hardware requirements while satisfying the target figures of merit.We refer to this method as "backward benchmarking".In 24 , a method based on this type of benchmarking has been proposed to optimize entanglement generation and distribution in quantum networks using genetic algorithms.By appropriately redesigning the cost function used, this method can be adapted to evaluate the performance of various other quantum protocols and optimize hardware performance.In this paper, as an example, we use the method proposed in 24 to benchmark the quantum money protocol.Specifically, our goal is to determine minimum requirements to guarantee the security of this protocol, i.e., c > 0.875, considering a fixed value for the storage time of qubits in the quantum memory.We are interested in answering the question of what are minimum viable improvements required for the quantum memory parameters T 1 and T 2 , compared to their currently achievable values experimentally (referred to as "baseline values" in 24 ), to achieve c > 0.875 for a desired fixed storage time.
To obtain the minimum requirements for a specific storage time, we consider an optimization problem with the following cost function where the parameters w 1 and w 2 are the weights of the objectives in the cost function, Θ(•) is the step function, and In the above equation, the parameters T i and T ib , for i = 1, 2, are in the range [0, 1].Hence, T i and T ib are converted to a value 10/16 By ensuring that both the base and the argument of the logarithm in (17) are in the range [0, 1], we guarantee that the cost function reflects the progressive hardness of improving hardware parameters.By this we mean that to improve T i slightly over T ib , only a small cost is assigned.However, as T i gets closer to its perfect value, the cost grows to infinity.This is meant to reflect the expectation that in an experimental setting, a hardware parameter becomes more difficult to improve as it approaches its perfect value.For further discussion on this point, see 24 .We employ a genetic algorithm-based optimization methodology to minimize the cost function in (16).For more information on the optimization procedure, please refer to 24 .As in Sec. 2, NetSquid is used to simulate the quantum money protocol.To obtain the parameter c, we use a block for 1000 qubit pairs and repeat the simulation for 5 times.For the baseline values, we choose T 1b = 10 h and T 2b = 1s.Other system parameters are the same as the ones chosen in Sec. 2. Table 5 shows the optimum solutions for values of T 1 and T 2 .Comparing these values with the baseline values, it can be seen that T 2 requires much more improvement than T 1 .This confirms that the main parameter limiting the performance of quantum money protocol is T 2 .Another observation is that the optimal solution for T 2 is around three times the storage time of qubits in the quantum memory, which is in line with the results obtained in Sec. 2.

Conclusion and future outlook
Quantum protocols enable distinctive functionalities such as secure communications and blind computation.To determine the requirements of quantum protocols and benchmark them against classical and post-quantum protocols, it is necessary to evaluate their performance considering different sources of system imperfection.Here, we considered several quantum protocols, namely quantum money, W-state based anonymous transmission, verifiable blind quantum computation, and quantum digital signature.We performed in-depth performance analysis for each protocol, mainly by use of NetSquid simulation platform.
First, we examined the effect of decoherence noise introduced by quantum memory in quantum money protocol.Our simulation results showed that the coherence time of quantum memory is the main parameter limiting the practical implementation of this protocol.To guarantee the security of this protocol, the coherence time of quantum memory is required to be at least three times the storage time of qubits.To enable longer than one second storage time while guaranteeing the security, it is necessary to improve hardware parameters, especially the coherence time of quantum memory.
Next, we considered W-state based anonymous transmission protocol and examined the degrading effect of different nonidealities such as decoherence noise of quantum memory, loss, and gate imperfections in the teleportation step.It can be inferred from the simulation results that the decoherence time constant of the quantum memory and the storage time of quantum particles play an important role in the fidelity of the teleported state.For instance, to achieve an average fidelity above 0.8 in this protocol, the storage time of the sender's and receiver's particles in the quantum memory must be less than half of the decoherence time constant of the quantum memory.This implies that aside from improving hardware parameters such as the decoherence time constant of quantum memory, minimizing the delay caused by the classical sub-protocols used in this protocol is of paramount importance.This can be achieved by using high-speed processors for the classical sub-protocols, and reducing the number of times the parity sub-protocol is repeated in the veto protocol, denoted by s.According to 27 , the correctness of the veto protocol decreases with reducing s.This imposes a trade-off between the correctness of the anonymous transmission protocol and the fidelity of the teleported state.The simulation results presented in this work are a great tool for efficient choice of protocol and hardware parameters, especially the parameters of classical sub-protocols such as s.
We also evaluated the degrading effect of the transmission loss on the probability of protocol failure.Although W-state based anonymous transmission protocol is more robust to loss of particles compared to its GHZ-based counterpart, our numerical results show that the probability of failure significantly increases with loss.Further, it was shown that the probability of protocol failure increases significantly by increasing the number of protocol participants, N.For instance, with our chosen parameters, for a transmission loss of 1 dB the probability of protocol failure for N = 4 and N = 8 are about 0.82 and 0.96, respectively.This restricts the scalability of the protocol and implies that its implementation is feasible only with small number of participants and in short-range scenarios.
Another protocol considered in this paper was three-qubit VBQC.We examined the performance of a test run considering different noise levels at the quantum gates.Our simulation results showed that with our chosen parameters, for a depolarizing probability of 0.05 at quantum gates, it was not possible to guarantee the security and correctness of this protocol.Furthermore, it can be inferred from the simulation results that if the depolarizing probability at the gate with highest depolarizing noise is at most 0.03, it is feasible to implement this protocol, although for a limited range of protocol parameters, e.g., t and w.To extend the range of feasible protocol parameters, it is necessary to enhance the fidelity of the quantum gates reaching beyond 0.9775 (corresponding to a depolarizing probability 0f 0.03).
Finally, we investigated the performance of quantum digital signature protocol.We evaluated the effect of transmission loss and the error in the measurement setup on the security level of the protocol.Our simulation results showed that the transmission loss adversely affects the probability of repudiation significantly.To compensate for the degrading effect of loss, one can increase the number of transmitted qubits.
It is worth noting that in this paper, we have considered three-qubit VBQC protocol (we assumed three qubits at the server), which is a specific case of this protocol.One possible future research direction is to change the number of qubits at the server and examine the impact of this parameter.Moreover, other types of BQC such as multi-server BQC protocols [31][32][33] can be considered.Furthermore, in this work we have assumed equal depolarization probability for all quantum gates to provide benchmarks.It will be interesting to investigate the effect of each individual gate by considering different noise levels for quantum gates.Another possible future research direction is to investigate the robustness of the quantum money protocol to different sources of loss such as transmission loss and quantum memory loss.Finally, one can consider the generalized QDS protocol with more than three parties 34 and evaluate the scalability of this protocol in practical scenarios like metropolitan area networks.
In summary, in this paper we presented detailed performance analysis of several quantum protocols: quantum money, W-state based anonymous transmission, verifiable blind quantum computation, and quantum digital signature.The simulation results presented in this paper provides a better understanding of advantages and limitations of these protocols and paves the way for efficient design and implementation of these protocols in future quantum networks.

3 / 16 Figure 1 .
Figure 1.c versus client wait time, T .The blue dashed line shows the security threshold 0.875.

Figure 2 .
Figure 2. (a) P correct versus number of qubit pairs for T = 0.01 s and T = 0.1 s.(b) P forge versus number of qubit pairs for T = 0.01 s and T = 0.1 s.

Figure 3 .
Figure 3. General description of W-state based anonymous transmission protocol.Solid arrows represent quantum communication, while dotted arrows represent classical communication.QM: quantum memory, BSM: Bell state measurement.

Figure 4 .
Figure 4. Average fidelity of the teleported state for different values of q 1 and q 2 .

Figure 5 .
Figure 5. Average fidelity of the teleported state versus q.

Figure 6 .
Figure 6.Probability of protocol failure versus transmission loss for different number of users.

Figure 7 .
Figure 7. Probability of failure of a test run for different values of depolarizing probability in quantum gates.The blue dashed line represents the threshold 0.25 for w/t.

Table 1 .
Major sources of noise and loss in quantum money protocol.

Table 2 .
Major sources of noise and loss in anonymous transmission protocol.
particle, the protocol will fail.We can write the probability of protocol failure as follows:

Table 3 .
Time duration of gates used in VBQC protocol

Table 5 .
Optimum solutions for values of T 1 and T 2 .