In this section, we present an illustrative example that demonstrates how variance…
- User
In this section, we present an illustrative example that demonstrates how variance regularization significantly enhances the robustness of a QNN against finite-sampling noise within a shot-based simulation. This example also highlights that a perfect fit, derived from a noise-free simulation, could inadvertently introduce a substantial variance of the expectation value. Consequently, this would necessitate a significantly large number of shots for an accurate evaluation. We want to point out that this effect should Layer l times repeated |0⟩ ˆ Ry(φs,1) ˆ Rx(φl,1 cos−1(x)) ˆ Rzz(φl,8) ˆ Ry(φe,1) |0⟩ ˆ Ry(φs,2) ˆ Rx(φl,2 cos−1(x)) ˆ Rzz(φl,5) ˆ Ry(φe,2) |0⟩ ˆ Ry(φs,3) ˆ Rx(φl,3 cos−1(x)) ˆ Rzz(φl,7) ˆ Ry(φe,3) |0⟩ ˆ Ry(φs,4) ˆ Rx(φl,4 cos−1(x)) ˆ Rzz(φl,6) ˆ Ry(φe,4) with = ˆ Rzz(φ) ˆ Rz(φ) Figure 1: Parameterized quantum circuit of the QNN used in all examples in this work. The first layer of ˆ Ry gates manipulates the initial state. The blueish highlighted layer includes the Chebychev input encoding in the ˆ Rx gates as well as the parameterized control manipulation of the quantum state. The layer is repeated l times for a repeated input encoding. The last layer of ˆ Ry gates serves as a change of the basis that is used for measurement. For a hardware efficient approach, the rightmost controlled gate in the blueish layer is removed to avoid swapping. be taken into account when interpreting results from QNNs that are entirely sourced from noise-free simulators. Figure 1 displays the PQC that is utilized throughout this work. We use the Chebyshev input encoding in which the input data is first encoded by a cos−1(x) function [12]. The use of the inverse cosine implies a rescaling of the input data to [−1, 1]. Using this non-linear input encoding as angles in rotation gates around the x-axis yields the following identity for integer n [41]: ˆ Rx(n cos−1(x)) = Tn(x) ˆ I −i√ 1 − x2Un−1(x) ˆ X , (13) in which Tn(x) and Un(x) are the first and second kind Chebyshev polynomials of degree n [44]. ˆ X denotes the Pauli-X operator. In contrast to previous works, we introduce a parameter φ instead of a fixed value for n which enables a flexible optimization of the degree of the Chebyshev polynomials during the training. An example of curves generated using Chebyshev polynomials with a non-integer value of n is presented in the Appendix A.1. These curves demonstrate a smooth transition between the individual Chebyshev polynomials. The initial values for the parameters in the encoding are chosen to be evenly distributed between φl,1 = 0.01 and φl,Nq = β following the idea of the Chebyshev tower approach [41]. Here and in the subsequent sections, Nq denotes the number of qubits. The initial value 0.01 is chosen to avoid a redundancy in the parameter that occurs for φ = 0.0, and β is considered as a hyper-parameter of the model. The quantum state from the input encoding is manipulated by a hardware efficient approach of ˆ Rzz(φ) = exp(−i φ 2ˆ Z⊗ ˆ Z) twoqubit interaction gates that are arranged in a nearest neighbor entangling set-up. The ˆ Ry gates at the beginning and the end of the feature map enable a basis Accepted in Quantum 2024-06-17, click title to verify. Published under CC-BY 4.0.
- Assistant
在您提供的内容中,描述了一个通过示例展示如何使用方差正则化来增强量子神经网络(QNN)在基于采样的模拟中对有限采样噪声的鲁棒性。这个示例还强调了从无噪声模拟得到的完美拟合可能会引入较大的期望值方差,从而需要大量的采样次数(shots)来获得准确的评估。
实验过程使用的内容:
-
参数化量子电路(PQC): 实验中使用的QNN的参数化量子电路如图1所示。该电路包括以下部分:
- 一组门用于操纵初始状态。
-