IP Library › Granted Patent US 12,639,611
Granted Patent B2
US 12,639,611 · App. 17/717,874 · Granted May 26, 2026

Quantum state vector implementation toolkit

Inventors: Joe Clapis (McLean, VA); Richard H. Preston (McLean, VA); Kevin J. Bergollo Lorenzo (McLean, VA)
Assignee: The MITRE Corporation
G06N10/60G06N10/20
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,639,611
App. No.
17/717,874
Granted
May 26, 2026
Kind
B2
Abstract

A method for generating a complete quantum circuit from a text-based quantum algorithm comprises receiving a text-based quantum algorithm comprising a first state vector and a second state vector, generating a first syntax tree based on the first state vector and a second syntax tree based on the second state vector, generating transition information characterizing a transition from the first state to the second state, selecting, based on the generated transition information, a type of transition that characterizes the transition from the first quantum state to the second quantum state, and generating a complete quantum circuit which indicates the first quantum state characterized by the first state vector, the selected type of transition, and the second quantum state characterized by the second state vector.

Claims (69)

1 . A method for generating a complete quantum circuit from a text-based quantum algorithm, the method comprising:

receiving a text-based quantum algorithm to be performed by a quantum computing system, wherein the text-based quantum algorithm comprises a first state vector characterizing a first quantum state of one or more qubits and a second state vector characterizing a second quantum state of the one or more qubits;

generating a first syntax tree based on the first state vector, wherein the first syntax tree comprises one or more nodes representing one or more elements of the first state vector of the text-based quantum algorithm;

generating a second syntax tree based on the second state vector, wherein the second syntax tree comprises one or more nodes representing one or more elements of the second state vector of the text-based quantum algorithm;

generating transition information based on the first syntax tree and the second syntax tree, wherein the transition information characterizes a transition from the first quantum state to the second quantum state of the one or more qubits;

selecting, based on the generated transition information, a type of transition that characterizes the transition from the first quantum state to the second quantum state; and

generating a complete quantum circuit based on the first and second state vectors, the generated first and second syntax trees, the generated transition information, and the selected type of transition, wherein the quantum circuit indicates the first quantum state characterized by the first state vector, the selected type of transition, and the second quantum state characterized by the second state vector.

2 . The method of claim 1 , further comprising standardizing the first state vector prior to generating the first syntax tree.

3 . The method of claim 1 , further comprising standardizing the second state vector prior to generating the second syntax tree.

4 . The method of claim 1 , wherein generating the first syntax tree comprises parsing the first state vector and identifying one or more elements appearing in the first state vector.

5 . The method of claim 1 , wherein generating the second syntax tree comprises parsing the second state vector and identifying one or more elements appearing in the second state vector.

6 . The method of claim 1 , wherein generating the transition information comprises generating one or more of: a first metadata set associated with the first abstract syntax tree and a second metadata set associated with a second abstract syntax tree.

7 . The method of claim 1 , wherein generating the transition information comprises one or more of: converting the first abstract syntax tree into a first list of superposition terms and converting the second syntax tree into a second list of superposition terms.

8 . The method of claim 1 , wherein generating the transition information comprises:

identifying one or more differences between the first syntax tree and the second syntax tree; and

determining a pattern based on the first state vector, the second state vector, and the identified one or more differences.

9 . The method of claim 1 , wherein the one or more elements of the first state vector comprise kets, amplitudes, values, entanglement groups, phase information or mathematical operations associated with the first state vector.

10 . The method of claim 1 , wherein the one or more elements of the second state vector comprise kets, amplitudes, values, entanglement groups, phase information, or mathematical operations associated with the second state vector.

11 . The method of claim 1 , wherein determining the type of transition comprises:

comparing the generated transition information to one or more patterns characterizing one or more known types of transitions; and

selecting a pattern of the one or more patterns that matches the generated transition information.

12 . The method of claim 1 , wherein determining the type of transition comprises applying one or more mathematical representations of one or more quantum operators to the first state vector.

13 . A system for generating a complete quantum circuit from a text-based quantum algorithm, the system comprising:

a memory; and

one or more processors;

wherein the memory stores one or more programs that, when executed by the one or more processors, cause the one or more processors to:

receive a text-based quantum algorithm to be performed by a quantum computing system, wherein the text-based quantum algorithm comprises a first state vector characterizing a first quantum state of one or more qubits and a second state vector characterizing a second quantum state of the one or more qubits;

generate a first syntax tree based on the first state vector, wherein the first syntax tree comprises one or more nodes representing one or more elements of the first state vector of the text-based quantum algorithm;

generate a second syntax tree based on the second state vector, wherein the second syntax tree comprises one or more nodes representing one or more elements of the second state vector of the text-based quantum algorithm;

generate transition information based on the first syntax tree and the second syntax tree, wherein the transition information characterizes a transition from the first quantum state to the second quantum state of the one or more qubits;

select, based on the generated transition information, a type of transition that characterizes the transition from the first quantum state to the second quantum state; and

generate a complete quantum circuit based on the first and second state vectors, the generated first and second syntax trees, the generated transition information, and the selected type of transition, wherein the quantum circuit indicates the first quantum state characterized by the first state vector, the selected type of transition, and the second quantum state characterized by the second state vector.

14 . The system of claim 13 , wherein the first state vector is standardized prior to the generation of the first syntax tree.

15 . The system of claim 13 , wherein the second state vector is standardized prior to the generation of the second syntax tree.

16 . The system of claim 13 , wherein generating the first syntax tree comprises parsing the first state vector and identifying one or more elements appearing in the first state vector.

17 . The system of claim 13 , wherein generating the second syntax tree comprises parsing the second state vector and identifying one or more elements appearing in the second state vector.

18 . The system of claim 13 , wherein generating the transition information comprises one or more of: converting the first abstract syntax tree into a first list of superposition terms and converting the second syntax tree into a second list of superposition terms.

19 . The system of claim 13 , wherein generating the transition information comprises generating one or more of: a first metadata set associated with the first abstract syntax tree and a second metadata set associated with a second abstract syntax tree.

20 . The system of claim 13 , wherein generating the transition information comprises:

identifying one or more differences between the first syntax tree and the second syntax tree; and

determining a pattern based on the first state vector, the second state vector, and the identified one or more differences.

21 . The system of claim 13 , wherein the one or more elements of the first state vector comprise kets, amplitudes, values, entanglement groups, phase information, or mathematical operations associated with the first state vector.

22 . The system of claim 13 , wherein the one or more elements of the second state vector comprise kets, amplitudes, values, entanglement groups, phase information, or mathematical operations associated with the second state vector.

23 . The system of claim 13 , wherein determining the type of transition comprises:

comparing the generated transition information to one or more patterns characterizing one or more known types of transitions; and

selecting a pattern of the one or more patterns that matches the generated transition information.

24 . The system of claim 13 , wherein determining the type of transition comprises applying one or more mathematical representations of one or more quantum operators to the first state vector.

25 . A non-transitory computer readable storage medium storing one or more programs for generating a complete quantum circuit from a text-based quantum algorithm, the programs for execution by one or more processors of an electronic device that, when executed by the device, cause the device to:

receive a text-based quantum algorithm to be performed by a quantum computing system, wherein the text-based quantum algorithm comprises a first state vector characterizing a first quantum state of one or more qubits and a second state vector characterizing a second quantum state of the one or more qubits;

generate a first syntax tree based on the first state vector, wherein the first syntax tree comprises one or more nodes representing one or more elements of the first state vector of the text-based quantum algorithm;

generate a second syntax tree based on the second state vector, wherein the second syntax tree comprises one or more nodes representing one or more elements of the second state vector of the text-based quantum algorithm;

generate transition information based on the first syntax tree and the second syntax tree, wherein the transition information characterizes a transition from the first quantum state to the second quantum state of the one or more qubits;

select, based on the generated transition information, a type of transition that characterizes the transition from the first quantum state to the second quantum state; and

generate a complete quantum circuit based on the first and second state vectors, the generated first and second syntax trees, the generated transition information, and the selected type of transition, wherein the quantum circuit indicates the first quantum state characterized by the first state vector, the selected type of transition, and the second quantum state characterized by the second state vector.

26 . The non-transitory computer-readable storage medium of claim 25 , wherein the first state vector is standardized prior to the generation of the first syntax tree.

27 . The non-transitory computer-readable storage medium of claim 25 , wherein the second state vector is standardized prior to the generation of the second syntax tree.

28 . The non-transitory computer-readable storage medium of claim 25 , wherein generating the first syntax tree comprises parsing the first state vector and identifying one or more elements appearing in the first state vector.

29 . The non-transitory computer-readable storage medium of claim 25 , wherein generating the second syntax tree comprises parsing the second state vector and identifying one or more elements appearing in the second state vector.

30 . The non-transitory computer-readable storage medium of claim 25 , wherein generating the transition information comprises one or more of: converting the first abstract syntax tree into a first list of superposition terms and converting the second syntax tree into a second list of superposition terms.

31 . The non-transitory computer-readable storage medium of claim 25 , wherein generating the transition information comprises generating one or more of: a first metadata set associated with the first abstract syntax tree and a second metadata set associated with a second abstract syntax tree.

32 . The non-transitory computer-readable storage medium of claim 25 , wherein generating the transition information comprises:

identifying one or more differences between the first syntax tree and the second syntax tree; and

determining a pattern based on the first state vector, the second state vector, and the identified one or more differences.

33 . The non-transitory computer-readable storage medium of claim 25 , wherein the one or more elements of the first state vector comprise kets, amplitudes, values, entanglement groups, phase information, or mathematical operations associated with the first state vector.

34 . The non-transitory computer-readable storage medium of claim 25 , wherein the one or more elements of the second state vector comprise kets, amplitudes, values, entanglement groups, phase information, or mathematical operations associated with the second state vector.

35 . The non-transitory computer-readable storage medium of claim 25 , wherein determining the type of transition comprises:

comparing the generated transition information to one or more patterns characterizing one or more known types of transitions; and

selecting a pattern of the one or more patterns that matches the generated transition information.

36 . The non-transitory computer-readable storage medium of claim 25 , wherein determining the type of transition comprises applying one or more mathematical representations of one or more quantum operators to the first state vector.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 10, 2022
From: CLAPIS, JOE; PRESTON, RICHARD H.; BERGOLLO LORENZO, KEVIN J.
To: THE MITRE CORPORATION
Reel/Frame 061723/0329 →
Continuity (1)
Related Publication 20230325704A1 · Oct 12, 2023
References Cited (19)
US 10657212B2 · Shao et al. · 2020 [cited by applicant]
US 10664761B2 · Haener et al. · 2020 [cited by applicant]
US 10803215B2 · Greenberg et al. · 2020 [cited by applicant]
US 10860759B2 · Roetteler et al. · 2020 [cited by applicant]
US 11048839B2 · Gunnels et al. · 2021 [cited by applicant]
US 11797276B1 · Shi · 2023 [cited by examiner]
US 20180276014A1 · Kliuchnikov et al. · 2018 [cited by applicant]
US 20190042392A1 · Matsuura et al. · 2019 [cited by applicant]
US 20200174879A1 · Javadiabhari et al. · 2020 [cited by applicant]
US 20200285985A1 · Javadiabhari · 2020 [cited by applicant]
US 20210124640A1 · Nickerson · 2021 [cited by examiner]
US 20210319351A1 · Kerenidis · 2021 [cited by examiner]
JP 4718244B2 · 2011 [cited by applicant]
Shao et al. (Dec. 2018). “Quantum Regularized Least Squares Solver with Parameter Estimate, ” arXiv [quant-ph]. 10 pages. [cited by applicant]
Yu et al. (Mar. 2019). “An improved quantum algorithm for ridge regression,” arXiv [quant-ph]. 12 pages. [cited by applicant]
Chen, Y.G. et al. (Aug. 2012). “Qcompiler: quantum compilation with CSD method,” 28 pages. [cited by applicant]
Evans, Daniel. “Dissecting a Quantum Program,” Proceedings of Student-Faculty Research Day, CSIS, Pace University, May 4, 2018, New York, New York; 5 pages. [cited by applicant]
Inouye, Jon. (2010). “Classical and Quantum Resource Analysis for the Quantum Linear Systems Algorithm,” 10th International Conference on Information Technology: New Generations (ITNG), Apr. 15-17, 2013, Las Vegas, Neva… [cited by applicant]
Trung, Pham Tien. (2011). “Constructing a software framework forsynthesizing high accuracy quantum circuits,” 74 pages. [cited by applicant]