# US 2021/0334079 A1 · Efficient quantum adaptive execution method for quantum circuits

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0334079 A1
- Document ID: US20210334079A1
- Status: Published application
- Kind: A1
- Application number: 16/860,644
- Filed: 2020-04-28
- Published: 2021-10-28
- Earliest claimed: 2020-04-28
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jay Michael Gambetta; Ismael Faro Sertage; Francisco Jose Martin Fernandez
- Web page: https://patentgrep.com/patent/US20210334079A1

## CPC

- G06N 10/20: Models of quantum computing, e.g. quantum circuits or universal quantum computers
- G06F 8/36: Software reuse
- G06F 8/41: Compilation
- G06N 10/80: Quantum programming, e.g. interfaces, languages or software-development kits for creating or handling programs capable of running on quantum computers; Platforms for simulating or accessing quantum computers, e.g. cloud-based quantum computing
- G06N 3/08: Learning methods
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods that can facilitate a quantum adaptive execution method based on previous quantum circuits and its intermediate results. This can generate an optimized adaptive compilation methodology for a specific backend and the previous quantum circuits dependents and thus redirect by the job dispatcher to the right quantum backend. Some of the quantum circuits can be dependent on other quantum circuits based on the intermediate results produced by the previous circuits. Hence, it is valuable that a system can manage the optimization of circuits based on its dependencies and by the results generated by the previous quantum circuits. In this way, the system can get an optimal result for a quantum circuit and inject it to the compiler unit to generate an adaptive compilation result. The resulted post-processing unit is the one in charge to apply this logic and manage the input/output of data to push it in the compiler units and the job dispatcher.

## Claims

### Claim 1

A system, comprising:
a memory that stores computer executable components; and
a processor that executes the following computer executable components stored in the memory, wherein the computer executable components comprise:
a receiving component that receives a quantum program for performing a quantum task, wherein the quantum program includes a first program and a second program;
an adaptive compiling component that compiles the first program;
an executing component that executes the compiled first program;
a second receiving component that receives an output based on executing the compiled first program;
a second adaptive compiling component that compiles the second program based on the received output from executing the first program; and
a second executing component that executes the compiled second program.

### Claim 2 (depends on 1)

The system of claim 1, further comprising a determining component that employs one or more circuit outputs applied to one or more circuit inputs.

### Claim 3 (depends on 1)

The system of claim 1, wherein the first program is defined based on a previously generated one or more outputs from the first program.

### Claim 4 (depends on 1)

The system of claim 1, wherein the second program is defined based on a previously received one or more outputs from the second program.

### Claim 5 (depends on 1)

The system of claim 1, wherein the receiving component recompiles the compiled first program into a first recompiled program adapted to execute on a first quantum hardware device.

### Claim 6 (depends on 5)

The system of claim 5, wherein receiving the output is based on executing the recompiled first program.

### Claim 7 (depends on 1)

The system of claim 1, wherein recompiling the compiled first program into a second recompiled program is adapted to execute on a second quantum hardware device.

### Claim 8 (depends on 7)

The system of claim 7, wherein receiving a second output is based on executing the recompiled second program.

### Claim 9 (depends on 1)

The system of claim 1, wherein compiling the second program is based on selecting either the output or a second output.

### Claim 10

A computer-implemented method, comprising:
receiving, by a system, a quantum program for performing a quantum task, wherein the quantum program includes a first program and a second program;
compiling, by the system, the first program;
executing, by the system, the compiled first program;
receiving, by the system, an output based on executing the compiled first program;
compiling, by the system, the second program based on the received output from executing the first program; and
executing, by the system, the compiled second program.

### Claim 11 (depends on 10)

The computer implemented method of claim 10, further comprising:
determining, by the system, one or more circuit outputs that are applied to one or more circuit inputs.

### Claim 12 (depends on 10)

The computer implemented method of claim 10, further comprising:
employing, by the system, the first program which is defined based on a previously generated one or more outputs from the first program.

### Claim 13 (depends on 10)

The computer implemented method of claim 10, further comprising:
employing, by the system, the second program which is defined based on a previously received one or more outputs from the second program.

### Claim 14 (depends on 10)

The computer implemented method of claim 10, further comprising:
recompiling, by the system, the compiled first program into a first recompiled program adapted to execute on a first quantum hardware device.

### Claim 15 (depends on 14)

The computer implemented method of claim 14, further comprising:
receiving, by the system, the output based on executing the recompiled first program.

### Claim 16 (depends on 10)

The computer implemented method of claim 10, further comprising:
recompiling, by the system, the compiled first program into a second recompiled program adapted to execute on a second quantum hardware device.

### Claim 17 (depends on 16)

The computer implemented method of claim 16, further comprising:
receiving, by the system, a second output based on executing the recompiled second program.

### Claim 18 (depends on 10)

The computer implemented method of claim 10, further comprising:
compiling, by the system, the second program based on selecting either the output or a second output.

### Claim 19

A computer program product facilitating a quantum adaptive execution of quantum circuits, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
receive, by the processor, a quantum program for performing a quantum task, wherein the quantum program includes a first program and a second program;
compile, by the processor, the first program;
execute, by the processor, the compiled first program;
receive, by the processor, an output based on executing the compiled first program;
compile, by the processor, the second program based on the received output from executing the first program; and
execute, by the processor, the compiled second program.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the program instructions are further executable by the processor to cause the processor to:
determine, by the processor, one or more circuit outputs that are applied to one or more circuit inputs.

### Claim 21 (depends on 19)

The computer program product of claim 19, wherein the program instructions are further executable by the processor to cause the processor to:
employ, by the processor, the first program which is defined based on a previously generated one or more outputs from the first program.

### Claim 22 (depends on 19)

The computer program product of claim 19, wherein the program instructions are further executable by the processor to cause the processor to:
employ, by the processor, the second program which is defined based on a previously received one or more outputs from the second program.

### Claim 23 (depends on 19)

The computer program product of claim 19, wherein the program instructions are further executable by the processor to cause the processor to:
recompile, by the processor, the compiled first program into a first recompiled program adapted to execute on a first quantum hardware device.

### Claim 24 (depends on 23)

The computer program product of claim 23, wherein the program instructions are further executable by the processor to cause the processor to:
receive, by the processor, the output based on executing the recompiled first program.

### Claim 25 (depends on 19)

The computer program product of claim 19, wherein the program instructions are further executable by the processor to cause the processor to:
recompile, by the processor, the compiled first program into a second recompiled program adapted to execute on a second quantum hardware device.
