# US 2021/0342731 A1 · Simulating quantum circuits on a computer using hierarchical storage

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

- Number: US 2021/0342731 A1
- Document ID: US20210342731A1
- Status: Published application
- Kind: A1
- Application number: 17/378,853
- Filed: 2021-07-19
- Published: 2021-11-04
- Earliest claimed: 2018-05-08
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Edwin Peter Dawson Pednault; Giacomo Nannicini; John A. Gunnels; Lior Horesh
- Web page: https://patentgrep.com/patent/US20210342731A1

## CPC

- G06N 10/20: Models of quantum computing, e.g. quantum circuits or universal quantum computers
- G06F 30/30: Circuit design
- G06F 30/33: Design verification, e.g. functional simulation or model checking
- G06F 30/3308: using simulation
- 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: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Described herein is a simulation of an input quantum circuit, comprising a machine-readable specification of a quantum circuit. Aspects include partitioning the input quantum circuit into a group of sub-circuits based on at least two groups of qubits identified for tensor slicing, wherein the resulting sub-circuits have associated sets of qubits to be used for tensor slicing. The simulating can occur in stages, one stage per sub-circuit. A set of qubits associated with a sub-circuit can be used to partition the simulated quantum state tensor for the input quantum state circuit into quantum state tensor slices, and the quantum gates in that sub-circuit can used to update the quantum state tensor slices into updated quantum state tensor slices. The updated quantum state tensor slices are stored to secondary storage as micro slices.

## Claims

### Claim 1

A system comprising,
a memory that stores computer executable components;
a processor, operably coupled to the memory, and that executes the computer executable components stored in the memory, wherein the computer executable components comprise:
a partitioning component that partitions an input quantum circuit comprising a representation of a quantum circuit into sub-circuits that minimize a quantity of read/write cycles to a secondary storage, wherein the sub-circuits have respective sets of qubits to be used for tensor slicing;
a simulating component that simulates the input quantum circuit in stages based on the sub-circuits into a simulated quantum state tensor comprising quantum state tensor slices; and
a read-write component that stores at least some of the quantum state tensor slices of the simulated quantum state tensor to the secondary storage.

### Claim 2 (depends on 1)

The system of claim 1, wherein the partitioning component minimizes a quantity of read and write cycles to the secondary storage by maximizing a quantity of gates to be simulated in aggregate memory comprising the memory and the secondary storage.

### Claim 3 (depends on 1)

The system of claim 1, wherein the read-write component writes the at least some of the quantum state tensor slices as micro slices with a size that spans at least two disk sectors of the secondary storage.

### Claim 4 (depends on 3)

The system of claim 3, wherein the micro slices are distributed across a plurality of disk drives of the secondary storage.

### Claim 5 (depends on 1)

The system of claim 1, wherein the simulating component updates the quantum state tensor slices into updated quantum state tensor slices.

### Claim 6 (depends on 5)

The system of claim 5, wherein the read-write component that stores at least some of the updated quantum state tensor slices to the secondary storage.

### Claim 7 (depends on 1)

The system of claim 1, wherein the input quantum circuit comprises at least forty-nine qubits and has a circuit depth level of at least fifty.

### Claim 8

A computer-implemented method, comprising,
partitioning, by a system operatively coupled to a processor, via a memory, an input quantum circuit comprising a representation of a quantum circuit into sub-circuits that minimize a quantity of read/write cycles to a secondary storage, wherein the sub-circuits have respective sets of qubits to be used for tensor slicing;
simulating, by the system, the input quantum circuit in stages based on the sub-circuits into a simulated quantum state tensor comprising quantum state tensor slices; and
storing, by the system, at least some of the quantum state tensor slices of the simulated quantum state tensor to the secondary storage.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein the partitioning minimizes a quantity of read and write cycles to the secondary storage by maximizing a quantity of gates to be simulated in aggregate memory comprising the memory and the secondary storage.

### Claim 10 (depends on 8)

The computer-implemented method of claim 8, where the storing the at least some of the quantum state tensor slices of the simulated quantum state tensor to the secondary storage comprises storing the at least some of the quantum state tensor slices as micro slices with a size that spans at least two disk sectors of the secondary storage.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein the micro slices are distributed across a plurality of disk drives of the secondary storage.

### Claim 12 (depends on 8)

The computer-implemented method of claim 8, further comprising updating, by the system, the quantum state tensor slices into updated quantum state tensor slices.

### Claim 13 (depends on 12)

The computer-implemented method of claim 12, further comprising storing, by the system, at least some of the updated quantum state tensor slices to the secondary storage.

### Claim 14 (depends on 8)

The computer-implemented method of claim 8, wherein the input quantum circuit comprises at least forty-nine qubits and has a circuit depth level of at least fifty.

### Claim 15

A computer program product for simulating quantum circuits including an input quantum circuit comprising a machine-readable specification of a quantum circuit, the computer program product comprising one or more computer readable storage media having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
partition, via a memory, the input quantum circuit into sub-circuits that minimize a quantity of read/write cycles to a secondary storage, wherein the sub-circuits have respective sets of qubits to be used for tensor slicing;
simulate the input quantum circuit in stages based on the sub-circuits into a simulated quantum state tensor comprising quantum state tensor slices; and
store at least some of the quantum state tensor slices of the simulated quantum state tensor to the secondary storage.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the partitioning minimizes a quantity of read and write cycles to the secondary storage by maximizing a quantity of gates to be simulated in aggregate memory comprising the memory and the secondary storage.

### Claim 17 (depends on 15)

The computer program product of claim 15, where the storing the at least some of the quantum state tensor slices of the simulated quantum state tensor to the secondary storage comprises storing the at least some of the quantum state tensor slices as micro slices with a size that spans at least two disk sectors of the secondary storage.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the micro slices are distributed across a plurality of disk drives of the secondary storage.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein the program instructions are executable by the processor to further cause the processor to update the quantum state tensor slices into updated quantum state tensor slices.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the program instructions are executable by the processor to further cause the processor to store at least some of the updated quantum state tensor slices to the secondary storage.
