Quantum Program Control-Flow Execution on Limited-Connectivity Hardware

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current quantum computers are limited by the connectivity between quantum bits, allowing only simple quantum programs with a straightforward flow to be executed, and complex programs with control flow cannot be processed effectively.

Innovation Solution

A method and apparatus for executing quantum programs by using an initial quantum circuit, obtaining measurement results, identifying and transforming to target quantum circuits based on connectivity, and executing a mapping transformation circuit to follow the control flow, enabling execution of complex programs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If quantum computers use limited connectivity between quantum bits to execute quantum programs, then gate transformation can be executed between specific quantum bit pairs, but complex quantum programs with control flow cannot be run

Engineering Contradiction:
Improvecapability to execute complex quantum programs with control flowVSAvoidconnectivity structure between quantum bits
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The quantum program is divided into multiple quantum circuits organized in a directed acyclic graph (DAG) structure, where each node represents a quantum circuit and edges represent control flow dependencies. This segmentation allows complex programs with control flow to be executed by breaking them down into manageable circuits that can be run on quantum computers with limited connectivity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

A classical controller is introduced as an intermediary between the quantum computer hardware and the quantum program. The classical controller manages the execution of quantum circuits, handles measurement results, and determines the control flow by comparing measurement outcomes with conditional statements, enabling complex program logic without requiring complex quantum bit connectivity.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If quantum programs are compiled into quantum circuits with basic gates for execution, then simple flow programs can be run, but complex programs with control flow cannot be processed

Engineering Contradiction:
Improveexecution capability of quantum programsVSAvoidprogram structure complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The system implements dynamic control flow execution where the classical controller adapts the execution path based on measurement results. The control flow graph allows the program to dynamically select which quantum circuits to execute next based on conditional statements, enabling complex program logic while maintaining compatibility with quantum computer execution capabilities.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent introduces a classical control dimension that operates alongside the quantum computation dimension. The classical controller manages control flow, conditional logic, and program structure, while the quantum computer handles quantum circuit execution. This dimensional separation allows complex programs to be executed without requiring the quantum hardware itself to be complex.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Data Source

PatentUS12436747B2Method for executing quantum program and method for compiling quantum program
Publication Date: 2025.10.07 SHENZHEN TENCENT COMP SYST CO LTD
  • US12436747B2 patent drawing
  • US12436747B2 patent drawing
  • US12436747B2 patent drawing

AI summary

This application relates to a method for executing a quantum program and a method for compiling a quantum program performed by a computer device. The executing method includes: using an initial quantum circuit in a physical quantum circuit contained in a target quantum program as a current quantum circuit; executing the current quantum circuit to obtain a quantum measurement result; identifying a target quantum circuit matching the quantum measurement result from candidate quantum circuits having a connection relationship with the current quantum circuit; and using the target quantum circuit as the current quantum circuit by executing a mapping transformation circuit between the current quantum circuit and the target quantum circuit, and returning to the step of executing the current quantum circuit to obtain a quantum measurement result to continue executing till a program executing result is obtained in response to meeting an executing termination condition.