A quantum privacy query method and system based on quantum homomorphic encryption
Through a method based on quantum homomorphic encryption, quantum rotation and homomorphic properties are used to perform quantum privacy query, which solves the problems of preparation obstacles, insecure distribution and resource waste in the existing technology, and realizes efficient and safe quantum privacy query, which is applicable to in the quantum cloud environment.
Patent Information
- Application Number
- CN202211647518.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-12-21
AI Technical Summary
Existing quantum privacy query solutions have preparation technical obstacles, insecure key distribution, resource waste problems of frequent oracle updates, and low communication efficiency.
Using a method based on quantum homomorphic encryption, the query is implemented through one round of communication, using quantum rotation and homomorphic properties for encryption and decryption. The server generates an index and uses quantum circuits to process the query results, and the user terminal uses a classical private key to decrypt.
It improves the security and efficiency of queries, avoids unsafe key distribution and waste of resources, realizes the security of databases and user terminals, and has high usage value in the quantum cloud environment.
Smart Images

Figure CN116244732B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum communication technology, and in particular to a quantum privacy query method and system based on quantum homomorphic encryption. Background Art
[0002] Quantum privacy query can accomplish the following task: a user obtains a record in the database for which she has paid, but the database manager does not know which record the user has obtained. Conversely, the user cannot obtain other records from the database for which she has not paid. This problem is symmetric private information retrieval in cryptography, and there is no good solution to this problem in the classical field. In 2008, Giovannetti et al. proposed using superposition states as bait states to detect possible cheating behavior of the server and using the qRAM algorithm to complete the query (Giovannetti, V., Lloyd, S., Maccone, L.: Quantum private queries. Physical review letters 100(23), 230502(2008)). The scheme requires two rounds of communication. The following year, De Martini et al. explored the physical implementation of the protocol (De Martini, F., Giovannetti, V., Lloyd, S., Maccone, L., Nagali, E., Sansoni, L., Sciarrino, F.: Experimental quantum private queries with linear optics. Physical Review A 80(1), 010302(2009)). In 2011, Olejnik et al. (Olejnik, L.: Secure quantum private information retrieval using phase-encoded queries. Physical Review A 84(2), 022313(2011)) tried to improve the VG scheme by removing the decoy state, so only one round of communication was needed. However, at the cost of communication efficiency, the server needed to perform complex preprocessing on the database and generate an oracle that depended on the database. Obviously, when the database changes, the oracle also needs to change, which is a major disadvantage of the Olejnik protocol. Jakobi et al. proposed using quantum key distribution to complete oblivious transmission and thus realize quantum privacy queries (Jakobi, M., Simon, C., Gisin, N., Bancal, J.-D., Branciard, C., Walenta, N., Zbinden, H.: Practical private database queries based on a quantum-key-distribution protocol. Physical Review A 83(2), 022301(2011)).Jakobi et al. used a variant of B92 and performed classical post-processing on the distribution results to ensure that users can only obtain one key. Gao et al. introduced quantum states similar to quantum rotation to improve the B92 protocol based on the former, and used angles to flexibly control the probability of users obtaining keys (Gao, F., Liu, B., Wen, Q.-Y., Chen, H.: Flexible quantum private queries based on quantum key distribution. Optics express 20(16), 17411-17420(2012)). These protocols are essentially derivatives of QKD, and complete key distribution based on probability. Therefore, there is a risk of inadvertent transmission of insecurity, that is, users obtain more than one key. In addition, there are also some solutions that use quantum entanglement to complete quantum privacy queries (such as Yang, Y.-G., Sun, S.-J., Xu, P., Tian, J.: Flexible protocol for quantum private query based on b92 protocol. Quantum information processing 13(3), 805-813(2014)), which is also an effective solution, but there are difficulties in technical implementation. From the above, the existing technology has the following problems:
[0003] (1) Previous privacy query schemes have technical barriers in the particle state preparation stage. Existing schemes mostly use the characteristics of Bell states or multi-particle entanglement to complete the query. However, the preparation of entangled states consumes a lot of resources and is not easy to prepare under existing technologies. This technical barrier greatly reduces the practicality of such quantum blind signature schemes.
[0004] (2) In the past, privacy query schemes that relied on quantum key distribution had a certain probability of users obtaining multiple keys, which may cause security risks in some cases. The post-processing steps and displacement encryption introduced to avoid these risks will reduce processing efficiency and may cause new security issues;
[0005] (3) In the past, privacy query solutions based on oracles required frequent updates of oracles and preservation of quantum states, which was very difficult to achieve with existing technology and resulted in a waste of resources.
[0006] There are the following difficulties in solving the above technical problems:
[0007] At present, the preparation and storage of GHZ states or multi-particle entangled states are great challenges. Compared with the preparation of single-particle states, expensive equipment and more resources are required to face entanglement attacks. Entanglement attacks are mostly resisted through overall system design, but at the same time, to ensure the security of server and user data, relying on entanglement is the most convenient and intuitive method. Most protocols rely too much on quantum key distribution to ensure the security of the scheme, while other quantum cryptography protocols can also achieve related purposes. Summary of the invention
[0008] To solve the above problems, the present invention proposes a quantum privacy query method and system based on quantum homomorphic encryption, which can complete the query with only one round of communication. It has the advantages of quantum privacy query protocol, as well as high efficiency and high security, and has high use value in quantum cloud environment.
[0009] On the one hand, a quantum privacy query method based on quantum homomorphic encryption includes:
[0010] Initialization phase S10, the server performs classical language machine operations on the classical database it holds and generates an index before querying;
[0011] In the query phase S20, the user terminal encrypts the quantum state query using a quantum homomorphic method based on quantum rotation and sends it to the server;
[0012] In the homomorphic stage S30, the server receives the quantum state query, processes it using the quantum circuit according to the index using the homomorphic characteristics, and sends the query result to the user terminal;
[0013] In the decryption stage S40, the user terminal receives the query result and decrypts the query result using the classic private key.
[0014] Preferably, the initialization stage specifically includes the following steps:
[0015] S101, the server uses the classic function f ab :n→A i =<i|n> Convert each item in the database into an index, that is, a series matrix {A1, A2, ..., A L}; where i∈{1, 2, ..., L}, n represents the data content stored in the database, i represents the number of the user query item, and L represents the total number of data items in the server;
[0016] S102, the server uses the classic function F: i→E i Generate {E1, E2, ..., E L}, and according to the order of natural numbers, the corresponding E i Acting on index A i On the above, we get {E1A1, E2A2, ..., EL A L} and saved locally on the server; where E i represents an N-order non-zero unitary operator;
[0017] S103, the server uses a high-dimensional single quantum basic gate group to evaluate the quantum circuit corresponding to the quantum one-way function according to the quantum gate ZYZ decomposition principle The quantum circuit after evaluation is The server sets up physical lines based on the evaluation results and waits for the input of subsequent quantum states.
[0018] Preferably, the query stage S20 specifically includes:
[0019] The user terminal generates a classical private key key, and uses the classical private key key to homomorphically encrypt the query request |l> to obtain a quantum state Enc (key) [|l>];
[0020] The user terminal generates L of the above quantum states and sends them to the server as a query request.
[0021] Preferably, the homomorphic stage S30 specifically includes the following steps:
[0022] S301, the server inputs each quantum state into the quantum circuit In the example, due to its homomorphic nature, the output of the quantum circuit is in The output result is:
[0023] S302, the server indexes the L items in the database {E1A1, E2A2, ..., E L A L} act on L output states respectively; by using the quantum homomorphic encryption method based on quantum rotation, the state of the i-th bit is obtained as
[0024] S303, the server feeds back L query results to the user terminal in natural number order.
[0025] Preferably, the decryption stage S40 specifically includes:
[0026] The user terminal uses the classic private key key to decrypt the received query results as follows:
[0027]
[0028] The user terminal can obtain the query result |n> if and only if i=1, that is, the query result is the bit queried by the user terminal.
[0029] Preferably, the quantum homomorphism method based on quantum rotation specifically includes:
[0030] S501, the user terminal selects four angles {θ1, θ2, θ3, θ4∈(-π, π)} as the classic private key;
[0031] S502: The user terminal sets a unitary operator and The user terminal uses the unitary operator to encrypt the quantum state plaintext σ∈{|0><0|,|1><1|,|2><2|}, and we can get Remember the matrix
[0032]
[0033]
[0034] Where m∈{1, 2, 3, 4};
[0035] S503, the server uses a set of single quantum basic gates According to the quantum gate ZYZ decomposition principle, {θ1, θ2, θ3, θ4} is selected to evaluate the quantum circuit U c , the result after evaluation is recorded as U′ c As a result, U′ c and To be commutative,
[0036] S504, the server sends U′ c After acting on the quantum state ciphertext ρ, the output result of the evaluation link is
[0037]
[0038] The server sends this operation result to the user terminal for decryption;
[0039] S505: The user terminal generates a decryption operator based on the saved classic private key. And act on the acquired quantum state to get the entrusted calculation result:
[0040]
[0041] On the other hand, a quantum privacy query system based on quantum homomorphic encryption includes a user terminal and a server; the steps of implementing quantum privacy query based on quantum homomorphic encryption by the user terminal and the server include:
[0042] In the initialization phase, the server performs classical language machine operations on the classical database it holds and generates indexes before querying;
[0043] In the query phase, the user terminal uses a quantum homomorphic method based on quantum rotation to encrypt the quantum state query and send it to the server;
[0044] In the homomorphic phase, the server receives quantum state queries, processes them using quantum circuits based on the index using homomorphic characteristics, and sends the query results to the user terminal;
[0045] In the decryption phase, the user terminal receives the query results and decrypts them using the classic private key.
[0046] Compared with the prior art, the present invention has the following beneficial effects:
[0047] The present invention realizes quantum privacy query based on the flexibility of quantum homomorphic encryption and quantum rotation, which can ensure that the content queried by the user terminal is not stolen by the server and the user cannot obtain other data items in the server except the legal items; the user terminal uses the classical perspective as the classical private key of quantum homomorphic encryption, and the server's preprocessing operation does not involve quantum operations. Both parties do not need to preserve the quantum state for a long time. Based on the above implementation, the present invention only needs one round of communication to complete the query, which has the advantages of the quantum privacy query protocol, as well as high efficiency and high security, and has high use value in the quantum cloud environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 This is a flow chart of a quantum privacy query method based on quantum homomorphic encryption according to an embodiment of the present invention;
[0049] Figure 2 This is a block diagram of a quantum privacy query system based on quantum homomorphic encryption according to an embodiment of the present invention.
[0050] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. DETAILED DESCRIPTION
[0051] This aspect will be further described below in conjunction with the accompanying drawings and embodiments.
[0052] See also Figure 1 As shown, the quantum privacy query method based on quantum homomorphic encryption of the present invention includes:
[0053] Initialization phase S10, the server performs classical language machine operations on the classical database it holds and generates an index before querying;
[0054] In the query phase S20, the user terminal encrypts the quantum state query using a quantum homomorphic method based on quantum rotation and sends it to the server;
[0055] In the homomorphic stage S30, the server receives the quantum state query, processes it using the quantum circuit according to the index using the homomorphic characteristics, and sends the query result to the user terminal;
[0056] In the decryption stage S40, the user terminal receives the query result and decrypts the query result using the classic private key.
[0057] In this embodiment, the initialization stage specifically includes the following steps:
[0058] S101, the server uses the classic function f ab :n→A i =<i|n> Convert each item in the database into an index, that is, a series matrix {A1, A2, ..., A L}; where i∈{1, 2, ..., L}, n represents the data content stored in the database, i represents the number of the user query item, and L represents the total number of data items in the server;
[0059] S102, the server uses the classic function F: i→E i Generate {E1, E2, ..., E L}, and according to the order of natural numbers, the corresponding E i Acting on index A i On the above, we get {E1A1, E2A2, ..., E L A L} and saved locally on the server; where E i represents an N-order non-zero unitary operator;
[0060] S103, the server uses a high-dimensional single quantum basic gate group to evaluate the quantum circuit corresponding to the quantum one-way function according to the quantum gate ZYZ decomposition principle The quantum circuit after evaluation is The server sets up physical lines based on the evaluation results and waits for the input of subsequent quantum states.
[0061] Specifically, let i∈{1, 2, ..., L}, and the classical function F is defined as F:i→E i Among them, E i is an N-order non-zero unitary operator. Assume that the classical database has L items of data, and the classical function f db Able to convert the i-th data n∈{0, 1, ..., N-1} into index f ab :n→A i =<i|n> , that is, converting the classical state data in the database into unitary operators. This process is a classical operation before the method starts, and the generated matrix can be saved in a classical way. It only needs to be converted into a quantum operation when participating in quantum state calculations in the protocol. is a quantum one-way function (QOWF) defined as
[0062] In this embodiment, the query stage S20 specifically includes:
[0063] The user terminal generates a classical private key key, and uses the classical private key key to homomorphically encrypt the query request |l> to obtain a quantum state Enc (key) [|l>];
[0064] The user terminal generates L of the above quantum states and sends them to the server as a query request.
[0065] In this embodiment, the homomorphic stage S30 specifically includes the following steps:
[0066] S301, the server inputs each quantum state into the quantum circuit In the example, due to its homomorphic nature, the output of the quantum circuit is in The output result is:
[0067] S302, the server indexes the L items in the database {E1A1, E2A2, ..., E L A L} act on L output states respectively; by using the quantum homomorphic encryption method based on quantum rotation, the state of the i-th bit is obtained as
[0068] S303, the server feeds back L query results to the user terminal in natural number order.
[0069] In this embodiment, the decryption stage S40 specifically includes:
[0070] The user terminal uses the classic private key key to decrypt the received query results as follows:
[0071]
[0072] The user terminal can obtain the query result |n> if and only if i=1, that is, the query result is the bit queried by the user terminal.
[0073] In this embodiment, the quantum homomorphism method based on quantum rotation specifically includes:
[0074] S501, the user terminal selects four angles {θ1, θ2, θ3, θ4∈(-π, π)} as the classic private key;
[0075] S502: The user terminal sets a unitary operator and The user terminal uses the unitary operator to encrypt the quantum state plaintext σ∈{|0><0|,|1><1|,|2><2|}, and we can get Remember the matrix
[0076]
[0077]
[0078] Where m∈{1, 2, 3, 4};
[0079] S503, the server uses a set of single quantum basic gates According to the quantum gate ZYZ decomposition principle, {θ1, θ2, θ3, θ4} is selected to evaluate the quantum circuit U c , the result after evaluation is recorded as U′ c As a result, U′ c and To be commutative,
[0080] S504, the server sends U′ c After acting on the quantum state ciphertext ρ, the output result of the evaluation link is
[0081]
[0082] The server sends this operation result to the user terminal for decryption;
[0083] S505: The user terminal generates a decryption operator based on the saved classic private key. And act on the obtained quantum state to get the entrusted calculation result:
[0084]
[0085] In summary, the present invention uses the quantum homomorphic encryption method to allow the encryption and decryption of the query process to occur inside the homomorphic encryption operator. The following will elaborate on the beneficial effects of the present invention from three aspects: database security, user security, and communication efficiency.
[0086] (1) Database security
[0087] The security of the database in quantum privacy queries, that is, the user terminal (the user queries the database through the user terminal) cannot easily know every item in the database held by the server. If the user is dishonest and tries to obtain more database items in one query, he must try to decrypt more encrypted data items. The setting of the oracle and the existence of the quantum homomorphic encryption algorithm make it impossible for the user terminal to make such an attempt. In the past, quantum privacy query schemes based on quantum key distribution all had a problem, that is, it cannot be guaranteed that the user can only obtain one key in the key distribution to complete the ideal casual query. For this reason, most schemes need to introduce classical post-processing or use the intrinsic parameters in the quantum key distribution to ensure the smooth progress of casual transmission. In addition, such schemes need to use displacement encryption to implement the encryption process. This undoubtedly affects efficiency. The method of the present invention avoids this problem. Although the method of the present invention also encrypts the database and then hands it over to the user terminal for decryption of a specific position, the dual encryption of homomorphic encryption and encryption matrix ensures that the user terminal can only strictly decrypt the data items at the corresponding position, which improves efficiency and ensures security. It needs to be emphasized again that and F are kept by the server and are strictly blind to the user terminal. Otherwise, the user can easily obtain {E1, E2, ..., E L} and decrypt all items in the database. Compared with the security determined by the measurement probability in the quantum key distribution scheme, the present invention has higher security. A common attack is that the user terminal obtains more than one query result by issuing a series of specific quantum queries. However, in the present invention, the user terminal cannot control the encryption process of the server because the operation is completely randomly performed by the server. If the user is honest, then these quantum queries are the same, and performing these operations in random order and random targets does not affect the operation results. On the contrary, if the user dishonestly uses a special query method, this random process can prevent the attacking quantum state of the user terminal from being applied to the desired database item. Therefore, it is not feasible to use special quantum queries to obtain additional information, and any attempt to query more database bits will obtain more uncrackable data. Therefore, the database in the method of the present invention is safe. Its security is guaranteed by homomorphic encryption and active operation of the server.
[0088] (2) User security
[0089] User security in quantum privacy query means the security of the query request of the user terminal, and the query request of the user terminal cannot be cracked by the server. Similar to the existing method, the user terminal in the present invention can detect whether the server has dishonest behavior by encrypting the request or using a decoy state.
[0090] In the present invention, the request of the user terminal is protected by high-dimensional homomorphic encryption, and the output is a completely mixed state. The internal attacker server and the external eavesdropper cannot distinguish the state of the request issued by the user. The oracle in the invention is equivalent to a black box. Under the protection of quantum homomorphic encryption, the server can complete the conversion of the query but does not know the content. In order for the server to have enough quantum states to carry the unitary operator in the database, the user terminal needs to send multiple identical encrypted requests, which makes it possible for the server to spy on the query content through quantum tomography or special measurement methods. In order to complete the query of the user terminal safely and efficiently, the database can be divided into blocks so that the user terminal does not need to risk sending a very large number of identical quantum states when querying, and improve the efficiency of the query. Even so, after using the flexible homomorphic encryption method based on quantum rotation, it is very difficult for the server to obtain the query content of the user terminal. In addition, the user terminal can set a decoy state during the query process to increase the risk of the server being discovered during this process. For example, an initial state known to the user terminal can be set in the query request issued, and the initial state can be verified in the final measurement, which greatly increases the probability of the server's dishonest behavior being discovered. Therefore, the user terminal in the present invention is secure, and the security of the user terminal is guaranteed by quantum homomorphic encryption and oracle.
[0091] (3) Communication efficiency
[0092] In terms of efficiency, the method of the present invention only needs one round of communication to complete the query, and most of the initialization work, such as generating indexes and encryption matrices, can be completed before the query begins, so it has a higher communication efficiency. It is used as a oracle and is completely independent of the database. When the data in the database is updated, only the index of the data item needs to be modified without frequently modifying the oracle. The oracle is used while ensuring security. Table 1 below shows the technologies and communication rounds used by various existing quantum privacy query methods and the method of the present invention.
[0093] Table 1
[0094]
[0095]
[0096] The solutions [1] to [9] in Table 1 are the methods involved in the following papers.
[0097] [1]Giovannetti,V.,Lloyd,S.,Maccone,L.:Quantum privatequeries.Physical review letters 100(23),230502(2008);
[0098] [2]De Martini,F.,Giovannetti,V.,Lloyd,S.,Maccone,L.,Nagali,E.,Sansoni,L.,Sciarrino,F.:Experimental quantum private queries with linearoptics.Physical Review A 80(1),010302(2009);
[0099] [3]Olejnik,L.:Secure quanrum private information retrieval usingphase-encoded queries.Physical Review A 84(2),022313(2011);
[0100] [4]Jakobi,M.,Simon,C.,Gisin,N.,Bancal,J.-D.,Branciard,C.,Walenta,N.,Zbinden,H.:Practical private database queries based on a quantum-key-distribution protocol.Physical Review A 83(2),022301(2011);
[0101] [5]Gao,F.,Liu,B.,Wen,Q.-Y.,Chen,H.:Flexible quantum private queriesbased on quantum key distribution.Optics express 20(16),17411-17420(2012);
[0102] [6] Yang, Y.-G., Sun, S.-J., Xu, P., Tian, J.: Flexible protocol for quantumprivate query based on b92 protocol. Quantum information processing 13(3), 805-813(2014);
[0103] [7] Chang, Y., Zhang, S., Han, G., Sheng, Z., Yan, L., Xiong, J.: Quantum private query protocol based on two non-orthogonal states. Entropy 18(5), 163(2016);
[0104] [8]Giovannetti, V., Lloyd, S., Maccone, L.: Quantum private queries: security analysis. IEEE Transactions on Information Theory 56(7), 3465-3477(2010);
[0105] [9] Zhu, H., Wang, L., Wang, C.: Privacy-enhanced multi-user quantum privatedata query using partialquantumhomomorphic encryption. International Journal of Theoretical Physics 60(6), 2090-2101(2021).
[0106] In summary, the present invention has higher security than previous solutions, and the oracle (quantum circuit u) used in the present invention has high feasibility. In addition, only one round of communication is needed to complete the query, and no additional QKD link is required, which has higher efficiency.
[0107] See also Figure 2 As shown, a quantum privacy query system based on quantum homomorphic encryption includes a user terminal 1 and a server 2; the steps of implementing quantum privacy query based on quantum homomorphic encryption by the user terminal 1 and the server 2 include:
[0108] During the initialization phase, the server performs classical language machine operations on the classical database it holds and generates indexes before querying:
[0109] In the query phase, the user terminal uses a quantum homomorphic method based on quantum rotation to encrypt the quantum state query and send it to the server;
[0110] In the homomorphic phase, the server receives quantum state queries, processes them using quantum circuits based on the index using homomorphic characteristics, and sends the query results to the user terminal;
[0111] In the decryption phase, the user terminal receives the query results and decrypts them using the classic private key.
[0112] A specific implementation of a quantum privacy query system based on quantum homomorphic encryption and a quantum privacy query method based on quantum homomorphic encryption are not repeated in this embodiment.
[0113] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A quantum privacy query method based on quantum homomorphic encryption, characterized in that: include: Initialization phase S10: before querying, the server performs classical language machine operations on the classical database it holds and generates classical indexes, and converts the classical indexes into unitary operators; the server uses a high-dimensional single quantum basic gate group to evaluate the quantum circuit corresponding to the quantum one-way function according to the quantum gate ZYZ decomposition principle, and the server sets up physical circuits based on the evaluation results to wait for the input of subsequent quantum states; In the query phase S20, the user terminal generates a classical private key, encrypts the quantum state query using a quantum homomorphic method based on quantum rotation, and sends it to the server; In the homomorphic stage S30, the server receives the quantum state query, processes it using the quantum circuit according to the index using the homomorphic characteristics, and sends the query result to the user terminal; Decryption stage S40: the user terminal receives the query result and decrypts the query result using the classic private key; The quantum homomorphism method based on quantum rotation specifically includes: S501, the user terminal selects four angles {θ1, θ2, θ3, θ4∈(-π, π)} as the classic private key; S502: The user terminal sets a unitary operator and The user terminal uses the unitary operator to encrypt the quantum state plaintext σ∈{|0><0|,|1><1|,|2><2|}, and we can get Remember the matrix Where m∈{1, 2, 3, 4}; S503, the server uses a set of single quantum basic gates According to the quantum gate ZYZ decomposition principle, {θ1, θ2, θ3, θ4} is selected to evaluate the quantum circuit U c , the result after evaluation is recorded as U′ c As a result, U′ c and To be commutative, S504, the server sends U′ c After acting on the quantum state ciphertext ρ, the output result of the evaluation link is The server sends this operation result to the user terminal for decryption; S505: The user terminal generates a decryption operator based on the saved classic private key. And act on the acquired quantum state to get the entrusted calculation result: .
2. The quantum privacy query method based on quantum homomorphic encryption according to claim 1 is characterized in that: The initialization stage specifically includes the following steps: S101, the server uses the classic function f ab :n→A i =<i|n> Convert each item in the database into an index, that is, a series matrix {A1, A2, ..., A L }; where i∈{1, 2, ..., L}, n represents the data content stored in the database, i represents the number of the user query item, and L represents the total number of data items in the server; S102, the server uses the classic function F: i→E i Generate {E1, E2, ..., E L }, and according to the order of natural numbers, the corresponding E i Acting on index A i On the above, we get {E1A1, E2A2, ..., E L A L } and saved locally on the server; where E i represents an N-order non-zero unitary operator; S103, the server uses a high-dimensional single quantum basic gate group to evaluate the quantum circuit corresponding to the quantum one-way function according to the quantum gate ZYZ decomposition principle The quantum circuit after evaluation is The server sets up a physical line based on the evaluation result to wait for the input of subsequent quantum states; Indicates that |i> is input The output result.
3. The quantum privacy query method based on quantum homomorphic encryption according to claim 2 is characterized in that: The query stage S20 specifically includes: The user terminal generates a classical private key key, and uses the classical private key key to homomorphically encrypt the query request |l> to obtain a quantum state Enc (key) [|l>]; The user terminal generates L of the above quantum states and sends them to the server as a query request.
4. The quantum privacy query method based on quantum homomorphic encryption according to claim 3 is characterized in that: The homomorphic stage S30 specifically includes the following steps: S301, the server inputs each quantum state into the quantum circuit In the example, due to its homomorphic nature, the output of the quantum circuit is in Indicates that |l> is input The output result is: S302, the server indexes the L items in the database {E1A1, E2A2, ..., E L A L } act on L output states respectively; by using the quantum homomorphic encryption method based on quantum rotation, the state of the i-th bit is obtained as S303, the server feeds back L query results to the user terminal in natural number order.
5. The quantum privacy query method based on quantum homomorphic encryption according to claim 4 is characterized in that: The decryption stage S40 specifically includes: The user terminal uses the classic private key key to decrypt the received query results as follows: The user terminal can obtain the query result |n> if and only if i=1, that is, the query result is the bit queried by the user terminal.
6. A quantum privacy query system based on quantum homomorphic encryption, characterized in that: The method comprises a user terminal and a server; the steps of implementing quantum privacy query based on quantum homomorphic encryption by the user terminal and the server include: In the initialization phase, the server performs classical language machine operations on the classical database it holds and generates classical indexes before querying, and converts the classical indexes into unitary operators; the server uses a high-dimensional single quantum basic gate group to evaluate the quantum circuit corresponding to the quantum one-way function according to the quantum gate ZYZ decomposition principle, and the server sets up physical circuits based on the evaluation results to wait for the input of subsequent quantum states; In the query phase, the user terminal generates a classic private key, encrypts the quantum state query using a quantum homomorphic method based on quantum rotation, and sends it to the server; In the homomorphic phase, the server receives quantum state queries, processes them using quantum circuits based on the index using homomorphic characteristics, and sends the query results to the user terminal; In the decryption phase, the user terminal receives the query results and decrypts them using the classic private key; The quantum homomorphism method based on quantum rotation specifically includes: S501, the user terminal selects four angles {θ1, θ2, θ3, θ4∈(-π, π)} as the classic private key; S502: The user terminal sets a unitary operator and The user terminal uses the unitary operator to encrypt the quantum state plaintext σ∈{|0><0|,|1><1|,|2><2|}, and we can get Remember the matrix Where m∈{1, 2, 3, 4}; S503, the server uses a set of single quantum basic gates According to the quantum gate ZYZ decomposition principle, {θ1, θ2, θ3, θ4} is selected to evaluate the quantum circuit U c , the result after evaluation is recorded as U′ c As a result, U′ c and To be commutative, S504, the server sends U′ c After acting on the quantum state ciphertext ρ, the output result of the evaluation link is The server sends this operation result to the user terminal for decryption; S505: The user terminal generates a decryption operator based on the saved classic private key. And act on the acquired quantum state to get the entrusted calculation result: .
