Deep Learning Code Infusion for Quantum Conversion

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Classical computing systems face performance issues with computationally intensive applications, and there is a need to determine which sections of classical code can be efficiently converted to quantum code to speed up processing.

Innovation Solution

A method using deep learning to analyze classical code and identify sections suitable for quantum conversion, considering factors like runtime tolerance, memory usage, and user behavior, and creating a quantum library to facilitate this conversion.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If classical computing systems are used for computationally intensive applications, then the system structure remains simple and familiar, but the processing speed and performance become unreasonably slow

Engineering Contradiction:
Improveprocessing speedVSAvoidsystem complexity
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The patent divides classical code into distinct sections and identifies specific portions suitable for quantum conversion. The system segments the code analysis process into multiple stages: initial scanning, deep learning analysis, quantum suitability evaluation, and conversion implementation. This segmentation allows selective quantum acceleration of only the computationally intensive portions while maintaining classical execution for other parts, thereby improving speed without requiring complete system quantum conversion.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary system consisting of deep learning models and quantum conversion tools that bridge classical and quantum computing environments. This intermediary layer analyzes classical code, identifies quantum-suitable sections, performs the conversion to quantum code, and integrates the quantum-processed results back into the classical execution flow. This mediator enables seamless hybrid operation without requiring developers to directly manage the complexity of quantum system integration.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If more sections of classical code are converted to quantum code, then computational performance improves, but the complexity of code conversion and integration increases

Engineering Contradiction:
Improvecomputational efficiencyVSAvoidcode conversion complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent implements self-service mechanisms where the deep learning models automatically analyze code sections and determine their quantum conversion suitability without manual intervention. The system autonomously identifies computationally intensive patterns, evaluates quantum acceleration potential, and generates conversion recommendations. This automation reduces the complexity burden on developers while maintaining high conversion accuracy and enabling scalable quantum code integration.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent employs parameter-based decision-making where deep learning models evaluate multiple parameters of code sections (computational complexity, data access patterns, iteration depth, mathematical operation types) to determine quantum conversion suitability. By changing the analysis from qualitative to quantitative parameter-based evaluation, the system objectively identifies conversion candidates and optimizes the balance between productivity gain and conversion complexity.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If deep learning models are used to analyze classical code, then the accuracy of quantum conversion identification improves, but the computational overhead and analysis time increase

Engineering Contradiction:
Improveconversion identification accuracyVSAvoidanalysis time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-training deep learning models on extensive datasets of classical and quantum code pairs before actual conversion tasks. The models are pre-equipped with knowledge of quantum-suitable computational patterns, mathematical operations, and code structures. This preliminary training enables the models to quickly and accurately identify conversion candidates during actual use without requiring extensive real-time analysis, thus reducing analysis time while maintaining high precision.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements partial action by having deep learning models focus analysis only on potentially quantum-suitable code sections rather than analyzing every line of code in detail. The models use hierarchical analysis: a first layer quickly scans and identifies candidate sections, then a second layer performs detailed evaluation only on those candidates. This partial detailed analysis approach maintains high identification accuracy while significantly reducing overall analysis time compared to exhaustive examination of entire codebases.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS11188317B2Classical artificial intelligence (AI) and probability based code infusion
Publication Date: 2021.11.30 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11188317B2 patent drawing
  • US11188317B2 patent drawing
  • US11188317B2 patent drawing

AI summary

A method, a computer system, and a computer program product for parallel conversion is provided. Embodiments of the present invention may include analyzing raw classical code using a code embedded deep learning model. Embodiments of the present invention may include analyzing running classical code using a deep learning model. Embodiments of the present invention may include marking a location of the raw classical code for a first quantum conversion. Embodiments of the present invention may include suggesting a memory size of the running classical code for a second quantum conversion. Embodiments of the present invention may include aggregating the raw classical code for the first quantum conversion. Embodiments of the present invention may include aggregating the running classical code for the second quantum conversion.