IP Library › Granted Patent US 12,265,770
Granted Patent B2
US 12,265,770 · App. 17/524,194 · Granted Apr 1, 2025

Method and apparatus for determining quantum circuit, and storage medium

Inventors: Shixin Zhang (Shenzhen, CN); Changyu Hsieh (Shenzhen, CN); Shengyu Zhang (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06F30/337G06N10/00
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,265,770
App. No.
17/524,194
Granted
Apr 1, 2025
Kind
B2
Abstract

This disclosure discloses a method and apparatus for determining a quantum circuit. The method may include sampling an initial circuit unit pool according to an initial sampling manner to obtain initial K groups of circuit units and constructing and generating initial K candidate quantum circuits. The method may further include determining a performance evaluation index corresponding to the initial K candidate quantum circuits and updating the initial sampling manner and a circuit unit in the initial circuit unit pool based on the performance evaluation index, to obtain an updated sampling manner and an updated circuit unit pool. The method may further include sampling the updated circuit unit pool according to the updated sampling manner to obtain updated K groups of circuit units and constructing and generating updated K candidate quantum circuits. The method may further include determining a target quantum circuit from the updated K candidate quantum circuits.

Claims (71)

1. A method for determining a quantum circuit, comprising:

sampling an initial circuit unit pool according to an initial sampling manner to obtain initial K groups of circuit units;

constructing and generating initial K candidate quantum circuits based on the initial K groups of circuit units, each group of the circuit units comprising at least one circuit unit for constructing and generating a candidate quantum circuit, and K being a positive integer;

determining a performance evaluation index corresponding to the initial K candidate quantum circuits;

updating the initial sampling manner and a circuit unit in the initial circuit unit pool based on the performance evaluation index, to obtain an updated sampling manner and an updated circuit unit pool;

sampling the updated circuit unit pool according to the updated sampling manner to obtain updated K groups of circuit units;

constructing and generating updated K candidate quantum circuits based on the updated K groups of circuit units; and

in response to a cycle termination condition being satisfied, determining a target quantum circuit from the updated K candidate quantum circuits.

2. The method according to claim 1 , wherein the sampling the initial circuit unit pool comprises:

constructing an initial probability model, the probability model comprising p×c parameters, p representing a maximum number of circuit units, and c representing a total number of circuit units in the initial circuit unit pool; and

sampling the initial circuit unit pool K times based on the initial probability model, to obtain the initial K groups of circuit units, each time of sampling being performed to obtain one group of circuit units.

3. The method according to claim 2 , wherein the updating the sampling manner and the circuit unit in the initial circuit unit pool comprises:

computing first gradient information and second gradient information based on the performance evaluation index, the first gradient information being gradient information of a model parameter of the initial probability model, and the second gradient information being gradient information of a circuit parameter of the circuit unit in the circuit unit pool;

updating the model parameter of the initial probability model based on the first gradient information, to obtain the updated probability model; and

updating the circuit parameter of the circuit unit in the circuit unit pool based on the second gradient information, to obtain the updated circuit unit pool.

4. The method according to claim 3 , wherein the performance evaluation index is an operation result of an objective function, and the computing the first gradient information and the second gradient information based on the performance evaluation index comprises:

computing a derivative of the objective function relative to the model parameter of the initial probability model, to obtain the first gradient information; and

computing a derivative of the objective function relative to the circuit parameter of the circuit unit in the circuit unit pool, to obtain the second gradient information.

5. The method according to claim 1 , wherein the performance evaluation index is an operation result of an objective function, and the determining the performance evaluation index corresponding to the initial K candidate quantum circuits comprises:

computing K operation results of the objective function respectively corresponding to the K candidate quantum circuits; and

obtaining the performance evaluation index based on the K operation results.

6. The method according to claim 1 , wherein the determining the target quantum circuit from the updated K candidate quantum circuits comprises:

determining a candidate quantum circuit with a largest generation probability from the updated K candidate quantum circuits; and

determining the candidate quantum circuit as the target quantum circuit.

7. The method according to claim 1 , wherein the method further comprises:

obtaining, for a j th circuit unit in an i th candidate quantum circuit, a circuit parameter of the j th circuit unit from a circuit parameter pool according to a position of the j th circuit unit in the circuit unit pool and a position of the j th circuit unit in the i th candidate quantum circuit,

the circuit parameter pool comprising a circuit parameter of each circuit unit in the circuit unit pool at each filling position, i being a positive integer less than or equal to K, and j being a positive integer.

8. The method according to claim 1 , wherein the method further comprises:

fixing a structure of the target quantum circuit, and adjusting a circuit parameter of each circuit unit in the target quantum circuit; and

in response to an adjustment termination condition being satisfied, obtaining the target quantum circuit post parameter tuning.

9. The method according to claim 1 , wherein a circuit unit is repeatable in each group of circuit units.

10. A method for determining quantum circuit, comprising:

selecting N circuit units from a circuit unit pool, the circuit unit pool comprising a plurality of circuit units, each circuit unit being an equivalent quantum circuit corresponding to a unitary matrix, and N being an integer greater than 1;

determining circuit parameters respectively corresponding to the N circuit units, the circuit parameter being for defining an operation performed by the circuit unit, and the circuit parameter being updatable; and

constructing and generating a quantum circuit based on the N circuit units and the circuit parameters respectively corresponding to the N circuit units.

11. The method according to claim 10 , wherein the determining the circuit parameters respectively corresponding to the N circuit units comprises:

obtaining, for an i th circuit unit in the N circuit units, a circuit parameter of the i th circuit unit from a circuit parameter pool according to a filling position of the i th circuit unit,

the circuit parameter pool comprising a circuit parameter of each circuit unit in the circuit unit pool at each filling position, i being a positive integer less than or equal to N.

12. The method according to claim 10 , wherein the method further comprises:

determining a performance evaluation index corresponding to the quantum circuit;

computing target gradient information based on the performance evaluation index, the target gradient information being gradient information of a circuit parameter of the quantum circuit; and

updating the circuit parameter of the quantum circuit based on the target gradient information, to obtain an updated quantum circuit.

13. The method according to claim 12 , wherein the performance evaluation index is an operation result of an objective function, and the computing the target gradient information based on the performance evaluation index comprises:

computing a derivative of the objective function relative to the circuit parameter of the quantum circuit, to obtain the target gradient information.

14. The method according to claim 10 , wherein a circuit unit is repeatable in the N circuit units.

15. An apparatus for determining a quantum circuit, comprising:

a memory operable to store computer-readable instructions; and

a processor circuitry operable to read the computer-readable instructions, the processor circuitry when executing the computer-readable instructions is configured to:

sample an initial circuit unit pool according to an initial sampling manner to obtain initial K groups of circuit units;

construct and generate initial K candidate quantum circuits based on the initial K groups of circuit units, each group of the circuit units comprising at least one circuit unit for constructing and generating a candidate quantum circuit, and K being a positive integer;

determine a performance evaluation index corresponding to the initial K candidate quantum circuits;

update the initial sampling manner and a circuit unit in the initial circuit unit pool based on the performance evaluation index, to obtain an updated sampling manner and an updated circuit unit pool;

sample the updated circuit unit pool according to the updated sampling manner to obtain updated K groups of circuit units;

construct and generate updated K candidate quantum circuits based on the updated K groups of circuit units; and

in response to a cycle termination condition being satisfied, determine a target quantum circuit from the updated K candidate quantum circuits.

16. The apparatus according to claim 15 , wherein the processor circuitry is configured to:

construct an initial probability model, the probability model comprising p×c parameters, p representing a maximum number of circuit units, and c representing a total number of circuit units in the initial circuit unit pool; and

sample the initial circuit unit pool K times based on the initial probability model, to obtain the initial K groups of circuit units, each time of sampling being performed to obtain one group of circuit units.

17. The apparatus according to claim 16 , wherein the processor circuitry is configured to:

compute first gradient information and second gradient information based on the performance evaluation index, the first gradient information being gradient information of a model parameter of the initial probability model, and the second gradient information being gradient information of a circuit parameter of the circuit unit in the circuit unit pool;

update the model parameter of the initial probability model based on the first gradient information, to obtain the updated probability model; and

update the circuit parameter of the circuit unit in the circuit unit pool based on the second gradient information, to obtain the updated circuit unit pool.

18. The apparatus according to claim 17 , wherein the performance evaluation index is an operation result of an objective function, and the processor circuitry is configured to:

compute a derivative of the objective function relative to the model parameter of the initial probability model, to obtain the first gradient information; and

compute a derivative of the objective function relative to the circuit parameter of the circuit unit in the circuit unit pool, to obtain the second gradient information.

19. The apparatus according to claim 15 , wherein the performance evaluation index is an operation result of an objective function, and the processor circuitry is configured to:

compute K operation results of the objective function respectively corresponding to the K candidate quantum circuits; and

obtain the performance evaluation index based on the K operation results.

20. The apparatus according to claim 15 , wherein the processor circuitry is configured to:

determine a candidate quantum circuit with a largest generation probability from the updated K candidate quantum circuits; and

determine the candidate quantum circuit as the target quantum circuit.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 13, 2023
From: ZHANG, SHIXIN; HSIEH, CHANGYU; ZHANG, SHENGYU
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 064245/0979 →
Continuity (2)
Continuation PCTCN2021073639 · Jan 25, 2021
Related Publication 20220114313A1 · Apr 14, 2022
References Cited (31)
US 9881256B2 · Hamze · 2018 [cited by examiner]
US 10797869B1 · Vakili · 2020 [cited by applicant]
US 20170255872A1 · Hamze · 2017 [cited by examiner]
US 20180240032A1 · van Rooyen · 2018 [cited by examiner]
US 20190361675A1 · Haener et al. · 2019 [cited by applicant]
US 20200320240A1 · Parrish et al. · 2020 [cited by applicant]
CN 104091214A · 2014 [cited by applicant]
CN 108710951A · 2018 [cited by applicant]
CN 109800883A · 2019 [cited by applicant]
CN 110490327A · 2019 [cited by applicant]
CN 110674921A · 2020 [cited by applicant]
CN 111241356A · 2020 [cited by applicant]
CN 111242306A · 2020 [cited by applicant]
CN 111461334A · 2020 [cited by applicant]
CN 111563599A · 2020 [cited by applicant]
CN 111598247A · 2020 [cited by applicant]
CN 111598249A · 2020 [cited by applicant]
CN 111738448A · 2020 [cited by applicant]
CN 112771552A · 2021 [cited by applicant]
KR 1020180004226A · 2018 [cited by applicant]
International Search Report of PCT/CN2021/073639 dated Jul. 21, 2021, 9 pages. [cited by applicant]
Office Action issued on Chinese application 202011096965.7 on Dec. 30, 2021, 8 pages. [cited by applicant]
Allcock, Jonathan et al., “Quantum machine learning”, Computer Science, Natl Sci Rev. 2019, vol. 6. No. 1, 3 pages. [cited by applicant]
Lihua, Wei et al., “Quantum Linear Logic Synthesis Algorithm Based on L-ESOP Reduction”, Journal of Computer-Aided Design & Computer Graphics, vol. 30, No. 8, Aug. 2018, 10 pages. [cited by applicant]
Office Action issued on Japanese application JP 2021-546756 on Feb. 6, 2023, 7 pages. [cited by applicant]
Grimsley, Harper R. et al., “An adaptive variational algorithm for exact molecular simulations on a quantum computer”, Article, [cited by applicant]
Notice of Reasons for Refusal issued Aug. 9, 2023 in corresponding Japanese Patent Application No. 2021-546756 with English translation. [cited by applicant]
European Communication dated May 20, 2022 issued on application EP21772939.1, 10 pages. [cited by applicant]
Grimsley, Harper R. et al., “An adaptive variational algorithm for exact molecular simulations on a quantum computer”, Nature Communications (2019) 10:3007, 9 pages. [cited by applicant]
Schuld, Maria et al., “Circuit-centric Quantum Classifiers”, Quantum Architectures and Computation Group, Station Q, Microsoft Research, Redmond, WA (Apr. 3, 2018), 17 pages. [cited by applicant]
Office action issued in Korean application No. 10-2021-7033817, dated Dec. 17, 2024, 22 pages (with English translation). [cited by applicant]