Quantum hypergraph state detection method and device
By performing m rounds of stabilizer detection and hypergraph dyeing on the client, the problems of difficulty in implementation, low efficiency and poor generalization of quantum hypergraph detection are solved, low-difficulty detection and efficient execution are achieved, and it is suitable for high-dimensional hypergraph states.
Patent Information
- Application Number
- CN202310174481.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
Existing quantum hypergraph state detection solutions have problems such as difficulty in implementation, low execution efficiency, and poor generalization. Especially in quantum computing, errors and resource overhead caused by quantum mechanical properties increase, making it difficult to meet protocol pass rate requirements.
By receiving the resource states sent by the server on the client side, m rounds of stable sub-detection are performed. The server dyes the hypergraph and calculates the proportion of the number of resource states that pass the detection. When the proportion value is greater than the threshold, it is determined to be a trusted resource state, which reduces resource overhead and improve execution efficiency.
It achieves low-difficulty quantum hypergraph state detection, has strong universality and efficiency, can be extended to high-dimensional hypergraph states without increasing resource overhead, improves execution efficiency and maintains the protocol's reliability under a certain fault tolerance rate. Pass rate.
Smart Images

Figure CN118536613A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically, relates to a quantum hypergraph detection method and device. Background Art
[0002] Verification of a special type of computing resource state in quantum computing - quantum hypergraph state. Measurement-based quantum computing (MBQC) is an important way of blind quantum computing, and quantum hypergraph state is an important computing resource in MBQC. In reality, if the security of the server cannot be guaranteed, it is possible to provide incorrect computing resources, resulting in inaccurate calculation results. Therefore, the client needs to perform fidelity detection on the resource state provided by the server to protect the security of quantum computing. This is also one of the main concerns in the design of quantum computing protocol schemes. In the evaluation criteria of the quantum hypergraph state verification scheme, there are four key points: protocol pass rate requirement (that is, when the pass ratio of the detected hypergraph state reaches a certain value, the hypergraph state can be judged as valid), completeness (the probability that the correct hypergraph state passes the protocol), soundness (when the protocol passes, it is used to calculate the average similarity between the hypergraph state and the correct hypergraph state; also known as fidelity), and resource overhead.
[0003] In the related technology, among the current detection schemes, the first one is that the resource overhead is controlled to a very low level, but the corresponding protocol pass rate requirement is very strict (reaching 1); in quantum computing, due to some special properties of quantum mechanics (such as the uncertainty principle, etc.), there will always be some inevitable errors in actual measurements. Therefore, this type of scheme with very strict protocol pass rate requirements is very difficult to apply in practice; the second one allows a certain fault tolerance in the protocol pass rate requirements, but it will immediately increase the resource overhead, which will affect the execution efficiency of the scheme; the third one has certain requirements on the form of the quantum hypergraph itself, and cannot be executed on any quantum hypergraph, and has poor generalization.
[0004] There is currently a lack of effective solutions to the technical problems in existing technologies such as the difficulty in implementing quantum hypergraph detection, low execution efficiency and poor generalization. Summary of the invention
[0005] Therefore, the embodiments of the present application provide a quantum hypergraph detection method, device, electronic device and storage medium, aiming to solve at least one problem existing in the above-mentioned prior art.
[0006] To achieve the above objectives, in a first aspect, the present application provides a quantum hypergraph state detection method, which is applied to a client and includes:
[0007] Receive several resource states prepared and sent by the server, perform m rounds of stable sub-detection on the resource states based on preset detection rules, and record the number of resource states that pass each round of detection, wherein the server colors the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, and m is the number of colors used to color the hypergraph, and m is a positive integer;
[0008] The number of resource states that have passed the test is summed to obtain the total number of resource states that have passed the test, and the ratio of the total number of resource states to the number of test resource states that have participated in the m rounds of testing is calculated;
[0009] When the ratio value is greater than the threshold, the total resource state that passes is determined as a trusted resource state.
[0010] In one embodiment, the server colors the hypergraph corresponding to the quantum hypergraph state, including: coloring each vertex of the n-bit hypergraph with a color, and all vertices of any hyperedge of the hypergraph have different colors.
[0011] In one embodiment, the performing m rounds of stable sub-detection on the resource state based on preset detection rules includes: randomly extracting a preset number of resource states from the resource state without replacing them each time, performing stable sub-detection on each extracted resource state based on the preset detection rules, and repeating m rounds.
[0012] In one embodiment, the stable sub-detection of each extracted resource state based on the preset detection rule includes: for a certain n-bit hypergraph state, performing Pauli X-gate measurement on i bits and recording the corresponding measurement result as Perform the Pauli Z gate measurement on j bits and record the corresponding measurement results as Get the stabilizer g i The test results are Among them, x i =0 or 1, z j =0 or 1, i∈C, C is the set of vertices with color c in the colored hypergraph. is the neighborhood of set C,
[0013]
[0014] If for all i∈C, When established, the stable sub-detection of the resource state passes.
[0015] In one embodiment, a target resource state is randomly selected from the trusted resource states as a resource state for quantum computing.
[0016] In a second aspect, the present application also provides a quantum hypergraph detection device, comprising:
[0017] A stable sub-detection module, used to receive several resource states prepared and sent by the server, perform m rounds of stable sub-detection on the resource states based on preset detection rules, and record the number of resource states that pass each round of detection, wherein the server colors the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, and m is the number of colors used to color the hypergraph, and m is a positive integer;
[0018] A calculation and verification module is used to sum the number of resource states that have passed the test to obtain the total number of resource states that have passed the test, and calculate the ratio of the total number of resource states to the number of test resource states that have participated in the m rounds of testing;
[0019] The resource state processing module is used to determine the total resource state that has passed as a trusted resource state when the ratio value is greater than a threshold.
[0020] In one embodiment, the server colors the hypergraph corresponding to the quantum hypergraph state, including: coloring each vertex of the n-bit hypergraph with a color, and all vertices of any hyperedge of the hypergraph have different colors.
[0021] In one embodiment, the performing m rounds of stable sub-detection on the resource state based on preset detection rules includes: randomly extracting a preset number of resource states from the resource state without replacing them each time, performing stable sub-detection on each extracted resource state based on the preset detection rules, and repeating m rounds.
[0022] In a third aspect, the present application also provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the quantum hypergraph detection method.
[0023] In a fourth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the steps of the quantum hypergraph detection method.
[0024] The embodiment of the present application provides a quantum hypergraph state detection method, device, electronic device and storage medium, which receives several resource states prepared and sent by a server, performs m rounds of stable sub-detection on the resource state based on preset detection rules, and records the number of resource states that pass each round of detection, wherein the server dyes the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, wherein m is the number of colors dyed for the hypergraph, and m is a positive integer; the number of resource states that pass the detection is summed to obtain the total number of resource states that pass, and the ratio of the total number of resource states to the number of test resource states participating in the m rounds of detection is calculated; when the ratio value is greater than the threshold, the total resource state that passes is determined as a credible resource state. The technical problems of difficult implementation, low execution efficiency and poor generalization of quantum hypergraph state detection in related technologies are solved, and low-difficulty quantum hypergraph state detection is realized. When a certain fault tolerance exists in the passing condition, the resource overhead of detection is reduced and the execution efficiency is improved compared with the previous scheme with the same fault tolerance; it can be extended to high-dimensional hypergraph states without changing the overhead, and has relatively strong universality. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A flow chart of a quantum hypergraph detection method provided by an embodiment of the present invention;
[0026] Figure 2 A main processing flow chart of the quantum hypergraph detection method provided by an embodiment of the present invention;
[0027] Figure 3 A flow chart of the interaction between the server and the client of the quantum hypergraph detection method provided in an embodiment of the present invention;
[0028] Figure 4 A diagram of the main modules of a quantum hypergraph detection device provided by an embodiment of the present invention;
[0029] Figure 5 An exemplary system architecture diagram that can be applied to the embodiments of the present application;
[0030] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] In addition, some of the above terms may be used to express other meanings in addition to indicating orientation or positional relationship. For example, the term "on" may also be used to express a certain dependency or connection relationship in some cases. For those of ordinary skill in the art, the specific meanings of these terms in this application can be understood according to specific circumstances.
[0034] In addition, the term "plurality" shall mean two or more.
[0035] In the embodiments of the present application, in blind quantum computing, an important method is measurement-based quantum computing (MBQC); in MBQC, two types of entangled states, quantum graph states and quantum supergraph states, are important computing resources, among which quantum graph states can be regarded as a special type of state in quantum supergraph states. The basic process of MBQC is: a server with strong quantum capabilities prepares entangled states as required and sends them to a client with weak quantum capabilities; the client completes the corresponding calculation by measuring the entangled states sent by the server. However, in reality, the security of the server cannot be guaranteed, resulting in the inability to guarantee the accuracy of the calculation results. Therefore, the client needs to perform fidelity detection on the resource states provided by the server to protect the security of quantum computing. This is also one of the main concerns of the design of quantum computing protocol schemes. Among them, the resource state detection protocol based on the design of "stable subdetection" is one of the most commonly used entangled state fidelity detection methods.
[0036] It should be noted that hypergraph is an abstract concept in mathematics. A hypergraph H = (V, E) consists of a set of vertices (i=1,2,…,n marks n vertices) and hyperedge set (“||” represents the number of elements in a set), |V|=n is the number of vertices in the hypergraph, and the hyperedges (i1, i2, etc. represent vertices in the hyperedge).
[0037] In the embodiment of the present application, each hypergraph state |H> can correspond to a hypergraph structure H=(V,E). An n-qubit (n-bit) hypergraph state |H> can be expressed as: (“e∈E” means that the hyperedge e is in the hyperedge set E, |+> is a special quantum bit state, The operator represents the tensor product), where (“j∈e” means that vertex j is on hyperedge e, I j represents the unit gate acting on the j-bit, |1> is a special quantum bit state, and |> and <| are both Dirac symbols) represents the control Z gate acting on the quantum bit corresponding to the hyperedge e. In particular, when |e| = 0, CZ e =-1.
[0038] In the embodiment of the present application, for the hypergraph The stable sub-g corresponding to the i-th bit i It can be expressed as: ( represents the hyperedge e containing vertex i, e\{i} represents the set of vertices remaining on hyperedge e except vertex i), where X i =(|+><+|-|-><-|) i (Xi represents the X gate acting on bit i, and |-> is a special quantum bit state.) The stabilizer of the hypergraph state satisfies the property: g i |H>=|H>.
[0039] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0040] The quantum hypergraph detection method, device, electronic device and storage medium provided in the embodiments of the present application are designed to solve the technical problems of difficult implementation, low execution efficiency and poor generalization of quantum hypergraph detection in related technologies.
[0041] Figure 1 The following is a flow chart of a quantum hypergraph detection method according to an embodiment of the present application. Figure 2 The main processing flow chart of the quantum hypergraph detection method provided by the embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present application is shown, which is described in detail as follows:
[0042] A quantum hypergraph detection method, comprising:
[0043] S101: receiving several resource states prepared and sent by a server, performing m rounds of stable sub-detection on the resource states based on preset detection rules, and recording the number of resource states that pass each round of detection, wherein the server colors the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, and m is the number of colors used to color the hypergraph, and m is a positive integer;
[0044] S102: summing the number of resource states that have passed the detection to obtain the total number of resource states that have passed the detection, and calculating the ratio of the total number of resource states to the number of test resource states that have participated in the m rounds of detection;
[0045] S103: When the ratio value is greater than a threshold, the total resource state that has passed is determined as a trusted resource state.
[0046] In step S101, several resource states prepared and sent by the receiving server are subjected to m rounds of stable sub-detection based on preset detection rules, and the number of resource states that pass each round of detection is recorded, wherein the server colors the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, and m is the number of colors used to color the hypergraph, and m is a positive integer.
[0047] like Figure 3 FIG. 1 is a flowchart showing the interaction between the server and the client of the quantum hypergraph state detection method provided by an embodiment of the present invention. The server used for quantum computing first dyes the hypergraph corresponding to the quantum hypergraph state, and then prepares the dyed hypergraph into N total The resource state is sent to the client in sequence. After receiving several copies (N total ) After the resource state is obtained, the hypergraph of the resource state is tested for stable subgraphs.
[0048] In one embodiment, the server colors the hypergraph corresponding to the quantum hypergraph state, including: coloring each vertex of the n-bit hypergraph with a color, and all vertices on any hyperedge of the hypergraph have different colors. Here, coloring the hypergraph means assigning a color to each vertex of the hypergraph, so that all vertices on any hyperedge have different colors. In one coloring scheme, the color is c k The set of vertices of is an independent set of the hypergraph, denoted by C k , the number of colors used in the scheme is recorded as m=γ(H).
[0049] For example, for a certain n-qubit hypergraph state ρ, the stabilizer (Xi represents the X gate acting on bit i, "e∈E" represents that the hyperedge e is in the hyperedge set E, The detection of (i) can be achieved by single-bit Pauli X and Z measurements: the result of X measurement on the i-th bit is (x i It may be 0 or 1), and the result of Z measurement on the jth bit is (z j It may be 0 or 1). Then, the stabilizer g i The test result can be expressed as Among them, “e∈E” means that the hyperedge e is in the hyperedge set E, represents the hyperedge e containing vertex i, and e\{i} represents the set of vertices remaining on hyperedge e except vertex i;
[0050]
[0051] when When it is established, the hypergraph state ρ passes through the stabilizer g i Otherwise, it fails.
[0052] In one embodiment, performing m rounds of stable sub-detection on the resource state based on a preset detection rule includes: randomly extracting a preset number of resource states from the resource state without replacement each time, performing stable sub-detection on each extracted resource state based on the preset detection rule, and repeating the m rounds. Figure 2 As shown, the client performs m rounds of detection (m is the number of coloring), randomly selects a certain number of resource states in each round, performs detection of a group of stable substates corresponding to a certain color, and records the number of detections that pass.
[0053] In one embodiment, the stable sub-detection of each extracted resource state based on the preset detection rule includes: for a certain n-bit hypergraph state, performing Pauli X-gate measurement on i bits and recording the corresponding measurement result as Perform the Pauli Z gate measurement on j bits and record the corresponding measurement results as Get the stabilizer g i The test results are Among them, x i =0 or 1, z j =0 or 1, i∈C, C is the set of vertices with color c in the colored hypergraph. is the neighborhood of set C,
[0054]
[0055] If for all i∈C, When the condition is established, the stable sub-detection of the resource state passes. Therefore, the number of passes in m rounds is summed up as the total number of passes. When the proportion of the total number of passes in the resource state detected in multiple rounds exceeds a certain threshold, the protocol passes, and thus the resource state used for calculation has a high fidelity.
[0056] In step S102: the number of resource states that have passed the test is summed to obtain the total number of resource states that have passed, and the ratio of the total number of resource states to the number of test resource states participating in the m rounds of test is calculated. Thus, the ratio of the number of resource states that have passed the m rounds of stable sub-tests is calculated by summing the number of resource states that have passed the m rounds of test, and the ratio of the data of the resource states participating in the m rounds of test is used as the standard for judging whether the overall test has passed, so as to determine the trusted resource state in the resource state sent by the server as the resource state for subsequent quantum computing.
[0057] In step S103: when the ratio value is greater than the threshold, the total resource states that have passed are determined as trusted resource states, that is, the number of all resource states that have passed m rounds of detection is determined as trusted resource states, and resource states in the trusted resource states are directly selected as computing resources in subsequent quantum computing.
[0058] In one embodiment, two properties of the trusted resource state need to be verified: completeness (the probability that the correct hypergraph state passes the protocol) and soundness (when the protocol passes, it is used to calculate the average similarity between the hypergraph state and the correct hypergraph state; also known as fidelity). Completeness of the protocol: When the resource state sent by the server is credible and all the hypergraph states sent are correct, each test in step S102 can pass, so: (Npass is the total number of resource states that have passed the test, Npass,i is the number of resource states that have passed the i-th round of testing, Ntest is the number of resource states that need to be tested in each round of testing, m is the coloring number, and n is the number of bits in the hypergraph state). The target resource state can be used for calculation. The soundness of the protocol can be proved by using mathematical tools such as Serfling's Bound: If N is set total =2mN test as well as Then the target state ρ tgt At least The probability of satisfying:
[0059]
[0060] in means round up, c is a constant, m is the coloring number of the hypergraph mentioned above, n ≥ 4, |H> is the correct hypergraph state, N total The total resource state sent by the server, Ntest is the total resource state participating in m rounds of detection. Therefore, under the condition of ensuring that the fidelity is close to 1, a certain degree of fault tolerance is allowed in the design of the protocol pass rate requirement, while reducing the overhead to less than O(n 5 log n).
[0061] It should be noted that Serfling's Bound considers the binary random variable sequence Y = (Y1, Y2, ..., Y T ), where Y i ∈{0,1}(1≤i≤T), N=TK. Then for any 0< <1, we have:
[0062] where Π is a set obtained by K independent uniform random sampling without replacement from the sequence {1,2,…,T}, is the complement of Π.
[0063] In one embodiment, a target resource state is randomly selected from the trusted resource states as a resource state for quantum computing.
[0064] Therefore, the quantum hypergraph state detection method provided in the embodiment of the present application, by receiving several resource states prepared and sent by the server, performs m rounds of stable sub-detection on the resource state based on the preset detection rules, and records the number of resource states that pass each round of detection, wherein the server dyes the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, wherein m is the number of colors dyed for the hypergraph, and m is a positive integer; the number of resource states that pass the detection is summed to obtain the total number of resource states that pass, and the ratio of the total number of resource states to the number of test resource states participating in the m rounds of detection is calculated; when the ratio value is greater than the threshold, the total resource state that passes is determined as a credible resource state. The technical problems of difficult implementation, low execution efficiency and poor generalization of quantum hypergraph state detection in the related technology are solved, and low-difficulty hypergraph detection is realized. When there is a certain fault tolerance rate in the passing condition, compared with the previous scheme with the same fault tolerance rate, the resource overhead of the detection is reduced and the execution efficiency is improved; it can be extended to high-dimensional hypergraph states without changing the overhead, and has relatively strong universality.
[0065] Figure 4 The main module diagram of the quantum hypergraph detection device provided in the embodiment of the present application is shown. For the convenience of explanation, only the part related to the embodiment of the present application is shown, which is described in detail as follows:
[0066] A quantum hypergraph detection device 200, comprising:
[0067] The stable sub-detection module 201 is used to receive several resource states prepared and sent by the server, perform m rounds of stable sub-detection on the resource states based on preset detection rules, and record the number of resource states that pass each round of detection, wherein the server colors the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, and m is the number of colors used to color the hypergraph, and m is a positive integer;
[0068] A calculation and verification module 202 is used to sum the number of resource states that have passed the detection to obtain the total number of resource states that have passed the detection, and calculate the ratio of the total number of resource states to the number of test resource states that have participated in the m rounds of detection;
[0069] The resource state processing module 203 is used to determine the total resource state that has passed as a trusted resource state when the ratio value is greater than a threshold.
[0070] The stable sub-detection module 201 is used to receive several resource states prepared and sent by the server, perform m rounds of stable sub-detection on the resource states based on preset detection rules, and record the number of resource states that pass each round of detection, wherein the server colors the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, and m is the number of colors used to color the hypergraph, and m is a positive integer.
[0071] like Figure 3 FIG. 1 is a flowchart showing the interaction between the server and the client of the quantum hypergraph state detection method provided by an embodiment of the present invention. The server used for quantum computing first dyes the hypergraph corresponding to the quantum hypergraph state, and then prepares the dyed hypergraph into N total The resource state is sent to the client in sequence. After receiving several copies (N total ) After the resource state is obtained, the hypergraph of the resource state is tested for stable subgraphs.
[0072] In one embodiment, the server colors the hypergraph corresponding to the quantum hypergraph state, including: coloring each vertex of the n-bit hypergraph with a color, and all vertices on any hyperedge of the hypergraph have different colors. Here, coloring the hypergraph means assigning a color to each vertex of the hypergraph, so that all vertices on any hyperedge have different colors. In one coloring scheme, the color is c k The set of vertices of is an independent set of the hypergraph, denoted by C k , the number of colors used in the scheme is recorded as m=γ(H).
[0073] For example, for a certain n-qubit hypergraph state ρ, the stabilizer The detection can be achieved through the Pauli X and Z measurements of a single bit: the result of the X measurement on the i-th bit is (xi It may be 0 or 1), and the result of Z measurement on the jth bit is (z j It may be 0 or 1). Then, the stabilizer g i The test result can be expressed as in:
[0074]
[0075] when When it is established, the hypergraph state ρ passes through the stabilizer g i Otherwise, it fails.
[0076] In one embodiment, performing m rounds of stable sub-detection on the resource state based on a preset detection rule includes: randomly extracting a preset number of resource states from the resource state without replacement each time, performing stable sub-detection on each extracted resource state based on the preset detection rule, and repeating the m rounds. Figure 2 As shown, the client performs m rounds of detection (m is the number of coloring), randomly selects a certain number of resource states in each round, performs detection of a group of stable substates corresponding to a certain color, and records the number of detections that pass.
[0077] In one embodiment, the stable sub-detection of each extracted resource state based on the preset detection rule includes: for a certain n-bit hypergraph state, performing Pauli X-gate measurement on i bits and recording the corresponding measurement result as Perform the Pauli Z gate measurement on j bits and record the corresponding measurement results as Get the stabilizer g i The test results are Among them, x i =0 or 1, z j =0 or 1, i∈C, C is the set corresponding to the vertices of color c in the colored hypergraph, is the neighborhood of set C,
[0078]
[0079] If for all i∈C, When the condition is established, the stable sub-detection of the resource state passes. Therefore, the number of passes in m rounds is summed up as the total number of passes. When the proportion of the total number of passes in the resource state detected in multiple rounds exceeds a certain threshold, the protocol passes, and thus the resource state used for calculation has a high fidelity.
[0080] The calculation verification module 202 is used to sum the number of resource states that have passed the test to obtain the total number of resource states that have passed, and calculate the ratio of the total number of resource states to the number of test resource states that participated in the m-round test. Thus, by summing the number of resource states that have passed the m-round stable sub-test, the ratio of the data of the resource states that participated in the m-round test is calculated as the standard for judging whether the overall test has passed, so as to determine the trusted resource state in the resource state sent by the server as the resource state for subsequent quantum computing.
[0081] The resource state processing module 203 is used to determine the total resource states that have passed as trusted resource states when the ratio value is greater than the threshold value, that is, the number of all resource states that have passed the m rounds of detection is determined as trusted resource states, and the resource states in the trusted resource states are directly selected as computing resources in subsequent quantum computing.
[0082] In one embodiment, two properties of the trusted resource state need to be verified: completeness (the probability that the correct hypergraph state passes the protocol) and soundness (when the protocol passes, it is used to calculate the average similarity between the hypergraph state and the correct hypergraph state; also known as fidelity). Completeness of the protocol: When the resource state sent by the server is credible and all the hypergraph states sent are correct, each test in step S102 can pass, so: The target resource state must be available for computation. The soundness of the protocol can be proved by using mathematical tools such as Serfling's Bound: If N total =2mN test as well as Then the target state ρ tgt At least The probability of satisfying:
[0083]
[0084] in means round up, c is a constant, m is the coloring number of the hypergraph mentioned above, n ≥ 4, |H> is the correct hypergraph state, N total The total resource state sent by the server, N test is the total resource state participating in m rounds of detection. Therefore, under the condition of ensuring that the fidelity is close to 1, a certain degree of fault tolerance is allowed in the design of the protocol pass rate requirement, while reducing the overhead to less than O(n 5 log n).
[0085] It should be noted that Serfling's Bound considers the binary random variable sequence Y = (Y1, Y2, ..., Y T ), where Yi ∈{0,1}(1≤i≤T), N=TK. Then for any 0<ω<1, we have:
[0086] where Π is a set obtained by K independent uniform random sampling without replacement from the sequence {1,2,…,T}, is the complement of Π.
[0087] In one embodiment, a target resource state is randomly selected from the trusted resource states as a resource state for quantum computing.
[0088] Therefore, the quantum hypergraph state detection method provided in the embodiment of the present application, by receiving several resource states prepared and sent by the server, performs m rounds of stable sub-detection on the resource state based on the preset detection rules, and records the number of resource states that pass each round of detection, wherein the server dyes the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, wherein m is the number of colors dyed for the hypergraph, and m is a positive integer; the number of resource states that pass the detection is summed to obtain the total number of resource states that pass, and the ratio of the total number of resource states to the number of test resource states participating in the m rounds of detection is calculated; when the ratio value is greater than the threshold, the total resource state that passes is determined as a credible resource state. The technical problems of difficult implementation, low execution efficiency and poor generalization of quantum hypergraph state detection in the related technology are solved, and low-difficulty hypergraph detection is realized. When there is a certain fault tolerance rate in the passing condition, compared with the previous scheme with the same fault tolerance rate, the resource overhead of the detection is reduced and the execution efficiency is improved; it can be extended to high-dimensional hypergraph states without changing the overhead, and has relatively strong universality.
[0089] Figure 5 An exemplary system architecture 300 is shown to which the quantum hypergraph state detection method or device according to the embodiment of the present application can be applied.
[0090] like Figure 5 As shown, the system architecture 300 may include terminal devices 301, 302, 303, a network 304 and a server 305. The network 304 is used to provide a medium for communication links between the terminal devices 301, 302, 303 and the server 305. The network 304 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0091] Users can use terminal devices 301, 302, 303 to interact with server 305 through network 304 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 301, 302, 303, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0092] The terminal devices 301 , 302 , and 303 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0093] The server 305 may be a server providing various services, such as a background management server providing support for the messages sent by the users using the terminal devices 301, 302, 303. The background management server may perform analysis and other processing after receiving the request of the terminal device, and feed back the processing result to the terminal device.
[0094] It should be noted that the quantum hypergraph detection method provided in the embodiment of the present application is generally performed by the terminal device 301, 302, 303 or the server 305, and accordingly, the quantum hypergraph detection device is generally arranged in the terminal device 301, 302, 303 or the server 305.
[0095] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0096] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 400 suitable for implementing an electronic device of an embodiment of the present application. Figure 4 The computer system shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0097] like Figure 6 As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0098] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
[0099] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present application are executed.
[0100] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0102] The modules involved in the embodiments described in the present application may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a determination module, an extraction module, a training module and a screening module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the determination module may also be described as a "module for determining a candidate user set".
[0103] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
[0104] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A quantum hypergraph detection method, characterized in that: Applied to the client, including: Receive several resource states prepared and sent by the server, perform m rounds of stable sub-detection on the resource states based on preset detection rules, and record the number of resource states that pass each round of detection, wherein the server colors the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, and m is the number of colors used to color the hypergraph, and m is a positive integer; The number of resource states that have passed the test is summed to obtain the total number of resource states that have passed the test, and the ratio of the total number of resource states to the number of test resource states that have participated in the m rounds of testing is calculated; When the ratio value is greater than the threshold, the total resource state that passes is determined as a trusted resource state.
2. The quantum hypergraph detection method according to claim 1, characterized in that: The server colors the hypergraph corresponding to the quantum hypergraph state, including: coloring each vertex of the n-bit hypergraph with a color, and all vertices of any hyperedge of the hypergraph have different colors.
3. The quantum hypergraph detection method according to claim 2, characterized in that: The method of performing m rounds of stable sub-detection on the resource state based on preset detection rules includes: randomly extracting a preset number of resource states from the resource state without replacing them each time, performing stable sub-detection on each extracted resource state based on preset detection rules, and repeating the method for m rounds.
4. The quantum hypergraph detection method according to claim 3, characterized in that: The stable sub-detection of each extracted resource state based on the preset detection rule includes: for a certain n-bit hypergraph state, the Pauli X-gate measurement is performed on the i-bit and the corresponding measurement result is recorded as Perform the Pauli Z gate measurement on j bits and record the corresponding measurement results as Get the stabilizer g i The test results are Among them, x i =0 or 1, z j =0 or 1, i∈C, C is the set corresponding to the vertices of color c in the colored hypergraph, is the neighborhood of set C, If for all i∈C, When established, the stable sub-detection of the resource state passes.
5. The quantum hypergraph detection method according to claim 1, characterized in that: A target resource state is randomly selected from the trusted resource states as a resource state for quantum computing.
6. A quantum hypergraph detection device, characterized in that: include: A stable sub-detection module, used to receive several resource states prepared and sent by the server, perform m rounds of stable sub-detection on the resource states based on preset detection rules, and record the number of resource states that pass each round of detection, wherein the server colors the hypergraph corresponding to the quantum hypergraph state of the resource state when sending the resource state, and m is the number of colors used to color the hypergraph, and m is a positive integer; A calculation and verification module is used to sum the number of resource states that have passed the test to obtain the total number of resource states that have passed the test, and calculate the ratio of the total number of resource states to the number of test resource states that have participated in the m rounds of testing; The resource state processing module is used to determine the total resource state that has passed as a trusted resource state when the ratio value is greater than a threshold.
7. The quantum hypergraph detection device according to claim 6, characterized in that: The server colors the hypergraph corresponding to the quantum hypergraph state, including: coloring each vertex of the n-bit hypergraph with a color, and all vertices of any hyperedge of the hypergraph have different colors.
8. The quantum hypergraph detection device according to claim 7, characterized in that: The method of performing m rounds of stable sub-detection on the resource state based on preset detection rules includes: randomly extracting a preset number of resource states from the resource state without replacing them each time, performing stable sub-detection on each extracted resource state based on preset detection rules, and repeating the method for m rounds.
9. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the quantum hypergraph detection method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the quantum hypergraph detection method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Graph state-based link chain structure quantum stabilizer subcode construction method
CN106100642A
Quantum error correction code preparation method oriented to fault-tolerant blind quantum computing
CN110380824A
Secure multi-party computing method based on verifiable blind quantum computing
CN113708926A
Quantum color code projection decoding method combined with Q neural network
CN114692856A
Simplified client and associated architectures for delegating quantum calculations to a quantum server
EP4057190A1
