# US 2023/0267358 A1 · Distributed Quantum Computing Simulation Method and Apparatus

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

- Number: US 2023/0267358 A1
- Document ID: US20230267358A1
- Status: Published application
- Kind: A1
- Application number: 18/012,528
- Filed: 2021-06-29
- Published: 2023-08-24
- Earliest claimed: 2020-09-04
- Assignees: Suzhou Inspur Intelligent Technology Cp., Ltd.
- Applicants: Suzhou Inspur Intelligent Technology Cp., Ltd.
- Inventors: Xin ZHANG; Yaqian ZHAO; Rengang LI; Jinzhe JIANG; Chen LI
- Web page: https://patentgrep.com/patent/US20230267358A1

## CPC

- G06N 10/20: Models of quantum computing, e.g. quantum circuits or universal quantum computers
- G06N 3/126: Evolutionary algorithms, e.g. genetic algorithms or genetic programming
- 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

## Abstract

A distributed quantum computing simulation method and apparatus. The method includes: converting a quantum circuit to be simulated into a tensor network that is represented by an undirected graph, and segmenting the undirected graph into a plurality of sub-graphs by using a genetic algorithm that is based on operation resources of a distributed system; respectively performing, on sub-process nodes, tensor contraction and merging on the plurality of sub-graphs for connected tensors until only one tensor is left to finally obtain zero-order tensors of the plurality of sub-graphs at the same time; and acquiring and superposing the zero-order tensors of the plurality of sub-graphs from the sub-process nodes at the same time to determine a zero-order tensor of the undirected graph, and using the zero-order tensor of the undirected graph as a probability amplitude of a positive operator value measurement element, so as to perform quantum computing simulation.

## Claims

### Claim 1

A distributed quantum computing simulation method, comprising:
converting a quantum circuit to be simulated into a tensor network that is represented by an undirected graph, and segmenting the undirected graph into a plurality of sub-graphs by using a genetic algorithm that is based on operation resources of a distributed system;
respectively performing, on sub-process nodes, tensor contraction and merging on the plurality of sub-graphs for connected tensors until only one tensor is left, so as to finally obtain zero-order tensors of the plurality of sub-graphs at the same time; and
acquiring and superposing the zero-order tensors of the plurality of sub-graphs from the sub-process nodes at the same time, so as to determine a zero-order tensor of the undirected graph, and using the zero-order tensor of the undirected graph as a probability amplitude of a positive operator value measurement element, so as to perform quantum computing simulation.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the step of converting the quantum circuit to be simulated into the tensor network that is represented by the undirected graph, comprises:
converting, by using an trace operation, an input state, an operation gate and a measurement of a quantum bit in the quantum circuit into tensors, and determining the tensors to be vertexes in the undirected graph; and
determining connection relationships among the input state, the operation gate and the measurement of the quantum bit in the quantum circuit to be connected edges between corresponding vertices in the undirected graph.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the step of segmenting the undirected graph into the plurality of sub-graphs by using the genetic algorithm that is based on the operation resources of the distributed system, comprises:
determining, on the basis of the operation resources of the distributed system, the number of times for segmenting the undirected graph, such that the exponential power of the number of times for segmentation with 4 as a base approaches to the number of available sub-processes;
determining, on the basis of the number of times for segmentation and by using the genetic algorithm, an edge set for segmenting the undirected graph;
cutting an edge in the edge set from the undirected graph, and generating two new vertices at the cut-off position;
assigning one of 4-component density operators {|0><0|, |0><1|, |1><0|, |1><1|} to the two new vertices as the tensors of the two new vertices; and
generating, on the basis of different assignments of the density operators of the tensors of the two new vertices, all possible combinations as the plurality of sub-graphs, wherein the number of sub-graphs is the exponential power of the number of times for segmentation with 4 as the base.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the step of determining, on the basis of the number of times for segmentation and by using the genetic algorithm, the edge set for segmenting the undirected graph, comprises:
constructing a determined number of undirected graphs as individuals to form an undirected graph population, randomly selecting, from the undirected graphs, edges in the number of times for segmentation, so as to generate the edge set.

### Claim 5

(canceled)

### Claim 6 (depends on 1)

The method according to claim 1, wherein the step of respectively performing, on the sub-process nodes, tensor contraction and merging on the plurality of sub-graphs for the connected tensors until only one tensor is left, so as to finally obtain the zero-order tensors of the plurality of sub-graphs at the same time, comprises:
respectively performing, by the sub-process nodes, tensor contraction and merging for different nodes in the plurality of sub-graphs in sequence by using the same tensor contraction and merging sequence, consuming the same computing resources within a unit computing time, and enabling the sub-process nodes with the same computing capability to obtain the zero-order tensors of the plurality of sub-graphs at the same time.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the step of converting the quantum circuit to be simulated into the tensor network that is represented by the undirected graph, and segmenting the undirected graph into the plurality of sub-graphs by using the genetic algorithm that is based on the operation resources of the distributed system; and the step of acquiring and superposing the zero-order tensors of the plurality of sub-graphs from the sub-process nodes at the same time, so as to determine the zero-order tensor of the undirected graph, and using the zero-order tensor of the undirected graph as the probability amplitude of the positive operator value measurement element, so as to perform quantum computing simulation, are all performed on a main process node of the distributed system.

### Claim 8

A distributed quantum computing simulation apparatus, comprising a main process node and a plurality of sub-process nodes, wherein:
the main process node is configured to convert a quantum circuit to be simulated into a tensor network that is represented by an undirected graph, and segment the undirected graph into a plurality of sub-graphs by using a genetic algorithm that is based on operation resources of a distributed system;
the plurality of sub-process nodes are configured to respectively perform tensor contraction and merging on the plurality of sub-graphs for connected tensors until only one tensor is left, so as to finally obtain zero-order tensors of the plurality of sub-graphs at the same time; and
the main process node is further configured to acquire and superpose the zero-order tensors of the plurality of sub-graphs at the same time, so as to determine a zero-order tensor of the undirected graph, and use the zero-order tensor of the undirected graph as a probability amplitude of a positive operator value measurement element, so as to perform quantum computing simulation.

### Claim 9 (depends on 8)

The apparatus according to claim 8, wherein the main process node is further configured to:
determine, on the basis of the operation resources of the distributed system, the number of times for segmenting the undirected graph, such that the exponential power of the number of times for segmentation with 4 as a base approaches to the number of available sub-processes;
determine, on the basis of the number of times for segmentation and by using the genetic algorithm, an edge set for segmenting the undirected graph;
cut an edge in the edge set from the undirected graph, and generate two new vertices at the cut-off position;
assigning one of 4-component density operators {|0><0|, |0><1|, |1><0|, |1><1|} to the two new vertices as the tensors of the two new vertices; and
generate, on the basis of different assignments of the density operators of the tensors of the two new vertices, all possible combinations as the plurality of sub-graphs, wherein the number of sub-graphs is the exponential power of the number of times for segmentation with 4 as the base.

### Claim 10 (depends on 9)

The apparatus according to claim 9, wherein the main process node is further configured to:
constructing a determined number of undirected graphs as individuals to form an undirected graph population, randomly select, from the undirected graphs, edges in the number of times for segmentation, so as to generate the edge set.

### Claim 11 (depends on 10)

The apparatus according to claim 10, wherein the main process node is further configured to:
enable all individuals, except the individual with the minimum width of the undirected graph tree, to exchange some edges in the edge set in a two-by-two adjacent manner, so as to perform chromosome variation;
replace one edge randomly selected from an edge set, which is randomly selected from all individuals except the individual with the minimum width of the undirected graph tree, with another randomly selected edge, so as to perform gene mutation;
in response to the occurrence of repeated edges in the edge set, randomly select edges, which do not exist in the edge set, so as to replace the repeated edges; and
repeatedly and circularly perform the steps until the number of cycles exceeds a predetermined maximum number of iterations, and return optimal individuals in the population as the edge set.

### Claim 12 (depends on 10)

The apparatus according to claim 10, wherein the main process node is further configured to:
respectively determine decomposition widths of the corresponding trees on the basis of respective structures of the plurality of trees; and
determine the width of the undirected graph tree on the basis of a minimum value of the decomposition widths of the plurality of trees.

### Claim 13 (depends on 10)

The apparatus according to claim 10, wherein the sub-process nodes are configured to respectively perform, by the sub-process nodes, tensor contraction and merging for different nodes in the plurality of sub-graphs in sequence by using the same tensor contraction and merging sequence, consume the same computing resources within a unit computing time, and enable the sub-process nodes with the same computing capability to obtain the zero-order tensors of the plurality of sub-graphs at the same time.

### Claim 14 (depends on 4)

The method according to claim 4, further comprising:
computing the widths of undirected graph trees of all individuals in the undirected graph population, and sorting all individuals according to the size of the widths of the undirected graph trees;
enabling all individuals, except the individual with the minimum width of the undirected graph tree, to exchange some edges in the edge set in a two-by-two adjacent manner, so as to perform chromosome variation;
replacing one edge randomly selected from an edge set, which is randomly selected from all individuals except the individual with the minimum width of the undirected graph tree, with another randomly selected edge, so as to perform gene mutation;
in response to the occurrence of repeated edges in the edge set, randomly selecting edges, which do not exist in the edge set, so as to replace the repeated edges; and
repeatedly and circularly performing the steps until the number of cycles exceeds a predetermined maximum number of iterations, and returning optimal individuals in the population as the edge set.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the step of computing the width of the undirected graph tree, comprises:
performing tree decomposition on the undirected graph on the basis of all different tension contraction and merging sequences, so as to obtain a plurality of trees;
respectively determining decomposition widths of the corresponding trees on the basis of respective structures of the plurality of trees; and
determining the width of the undirected graph tree on the basis of a minimum value of the decomposition widths of the plurality of trees.

### Claim 16 (depends on 1)

The method according to claim 1, the step of respectively performing, on sub-process nodes, tensor contraction and merging on the plurality of sub-graphs for connected tensors comprising:
contracting two inner edges of two connected tensors and merging two vertices of the two connected tensors into one, wherein each of the two connected tensors have an inner edge and an open edge.

### Claim 17 (depends on 1)

The method according to claim 1, further comprising:
respectively computing the contraction and merging of different sub-graphs on different cores of distributed processor threads, to realize distributed contraction and merging of the tensor network.

### Claim 18 (depends on 17)

The method according to claim 17, further comprising:
in response to the number of generated sub-graphs is not greater than the number of computing cores of distributed processor threads, performing the contraction and merging of different sub-graphs by using different cores;
in response to the number of sub-graphs is greater than the number of computing cores of distributed processor threads, performing the contraction and merging of different sub-graphs by a serial manner.

### Claim 19 (depends on 1)

The method according to claim 1, wherein the structure of each sub-graph obtained by the contraction and merging of each process is completely consistent, and used computing time of each sub-graph is consistent.

### Claim 20 (depends on 1)

The method according to claim 1, wherein the tensor network is formed by connecting different tensors via topology.

### Claim 21 (depends on 1)

The method according to claim 1, wherein the method is capable of performing density matrix-based single-amplitude strategy quantum computing simulation on a distributed computing system.
