Skip to content

Example use cases for quantum workflows, the MODULO framework, and the Quantum Modeling Extension (QuantME)

License

Notifications You must be signed in to change notification settings

UST-QuAntiL/QuantME-UseCases

Repository files navigation

Quantum Workflows, MODULO, and QuantME Use Cases

License

This project contains different use cases for quantum workflows and the MODULO framework. Thereby, the MODULO framework incorporates the Quantum Modeling Extension (QuantME) and the corresponding BPMN extension Quantum4BPMN. Furthermore, it provides an integrated toolchain to model, transform, deploy, and execute quantum workflows comprising the following components:

  • Quantum Workflow Modeler (previously QuantME Modeling and Transformation Framework): A graphical BPMN modeler supporting Quantum4BPMN to ease the modeling of quantum workflows by providing explicit modeling constructs for the execution of quantum circuits, as well as frequently occurring pre- and post-processing tasks. Furthermore, it enables transforming quantum workflows using Quantum4BPMN modeling constructs to native BPMN workflows to retain their portability between different workflow engines. Finally, it integrates the other components of the MODULO framework to automatically deploy required services, bind them to a workflow, and upload the executable workflow to a workflow engine.
  • Camunda BPMN Engine: A state-of-the-art BPMN workflow engine used to execute quantum workflows after transforming them to native BPMN workflow models to avoid the need for extending the workflow engine. It has been extended using a plugin to visualize quantum and deployment-specific information within so-called process views.
  • Winery: Winery is a web-based environment to graphically model TOSCA-based deployment models, which can then be attached to activities of quantum workflows to enable their automated deployment in the target environment.
  • OpenTOSCA Container: A TOSCA-compliant deployment system to deploy and manage applications or services.
  • Qiskit Runtime Handler: A service generating Qiskit Runtime programs for hybrid loops based on corresponding workflow fragments detected by the QuantME Modeling and Transformation Framework.
  • AWS Braket Hybrid Jobs Handler: A service generating AWS Braket Hybrid Jobs programs for hybrid loops based on corresponding workflow fragments detected by the QuantME Modeling and Transformation Framework.
  • Script Splitter: A service analyzing Python scripts to detect quantum and classical parts, which are then orchestrated by a generated workflow model.
  • Pattern Atlas: A graphical tool for authoring and visualizing patterns and pattern languages.

ICWE 2024 - Tutorial

In this tutorial, we show how to model, transform, and execute a quantum workflow manually using the MODULO framework. Furthermore, we discuss how to simplify this process by automatically generating the same quantum workflow based on a set of selected patterns. Detailed instructions for the use case are available here, and the required code can be accessed here.

ICWE 2024 - Demonstration

In this demonstration, we introduce an approach for enabling the development of portable and interoperable quantum applications utilizing a standards-based toolchain. Our approach facilitates the utilization of heterogeneous tools supporting the development of classical and quantum components. Thereby, we employ well-established standards for defining workflows, deployment topologies, application interfaces, and provenance data. To demonstrate the practical feasibility of our toolchain, we showcase it for two use cases from the cryptography and machine learning domains. The corresponding workflow, as well as instructions on how to set up the environment and execute the application can be found here.

CAiSE 2024 - Prototype

In this paper, we introduce an approach for enabling unified observability of hybrid quantum applications in heterogeneous multi-cloud environments. Thereby, we improve monitoring and analysis by providing user group-specific views of the executed workflow, e.g., for quantum or deployment experts. These views filter and enrich instance, provenance data, and real-time hardware data to provide a clear, informative view of the workflow for the user. To demonstrate the functionality of our approach, we implemented a case study solving the Maximum Cut (MaxCut) problem using the Quantum Approximate Optimization Algorithm (QAOA). We deploy all required services on-demand, selecting suitable deployment options during runtime based on custom deployment requirements. The corresponding workflow and deployment models, as well as instructions on how to set up the environment and execute the application can be found here.

CCIS 2023 - Prototype

In this paper, we extend our CLOSER 2023 paper, defining a metamodel for quantum workflows and formalizing the transformation of QuantME modeling constructs to native modeling constructs. The metamodel is used to introduce quantum-specific workflow modeling constructs that facilitate the modeling of Variational Quantum Algorithms (VQAs) as quantum workflows. To demonstrate the functionality of our modeling extension, we implemented a case study solving the Maximum Cut (MaxCut) problem using the Quantum Approximate Optimization Algorithm (QAOA). The corresponding workflow models and instructions on how to set up the environment and execute the application can be found here.

ICWE 2023 - Tutorial

In this tutorial, we show how to model, transform, deploy, execute, and monitor a real-world hybrid quantum application using workflows. Thereby, the Quokka ecosystem, as well as the quantum workflow modeler, are utilized. The hybrid quantum application uses multiple quantum algorithms, as well as multiple classical programs, to solve a use case from the package delivery domain. Detailed instructions for the use case are available here, and the required code can be accessed here.

CLOSER 2023 - Prototype

In this paper, we extend QuantME to facilitate the modeling of Variational Quantum Algorithms (VQAs) as quantum workflows. To this end, we introduce QuantME4VQA comprising new task types, data objects, and a comprehensible graphical notation. Furthermore, we ensure interoperability and portability by extending the QuantME transformation method to enable transforming all new modeling constructs to native modeling constructs of the used workflow language. To demonstrate its functionality, we implemented a case study solving the Maximum Cut (MaxCut) problem using the Quantum Approximate Optimization Algorithm (QAOA). The corresponding workflow models and instructions on how to set up the environment and execute the application can be found here.

Springer Nature Computer Science 2022 - Prototype

In this paper, we extend our CLOSER 2022 paper, analyzing and rewriting quantum workflows to execute them more efficiently using hybrid runtimes, by integrating a provenance approach. Thus, the use case covers the analysis and rewriting of quantum workflows, while generating a provenance collector in addition to the hybrid programs. This provenance collector runs in the hybrid runtime and collects provenance data about the quantum computer, the classical hardware, and the running hybrid programs. The collected provenance data is used to instrument process views that are visualized in the Camunda engine. Hence, they allow the user to display the modeled and rewritten workflow, which eases monitoring and analysis of quantum workflows. An example workflow model, as well as detailed instructions on how to set up the required environment and perform the different steps from analysis, over rewriting, to monitoring using process views, can be found here.

Electronics 2022 - Prototype

In this paper, we show how to automate the configuration of Readout Error Mitigation (REM) methods using QuantME. We analyze the literature for current state-of-the-art REM methods and derive general and method-specific configuration requirements. To make the error-prone and time-consuming process of configuring REM more efficient, we present an automation approach based on QuantME. To demonstrate its functionality, we implemented a case study from the quantum humanities domain, performing clustering and classification by means of quantum algorithms. The corresponding workflow models and instructions on how to set up the environment and execute the application can be found here.

EDOC 2022 - Prototype

We introduce an approach that generates workflow models from existing script-based quantum implementations. Our approach first splits the script-based implementations into their quantum and classical parts. These parts are then orchestrated by a generated workflow model that resembles the original execution order of the script and ensures correct data flow between them. Furthermore, deployment models are generated for each part to enable automated deployment. An example script-based implementation, as well as detailed instructions on how to set up the required environment and perform the different steps of the approach, can be found here.

CLOSER 2022 - Prototype

In this paper, we introduce a method to enable modeling all tasks implementing hybrid quantum algorithms in a workflow model while increasing the efficiency through hybrid runtimes. Such hybrid runtimes allow the upload of quantum and classical programs together as so-called hybrid programs and optimize their execution. However, modeling the invocation of hybrid programs directly in the workflow decreases the modularity and understandability, as all tasks implementing the hybrid quantum algorithm are hidden. Thus, we analyze the workflow model to detect optimization candidates that can benefit from hybrid runtimes, check their suitability based on constraints of the runtimes, generate a corresponding hybrid program, and rewrite the workflow to invoke it. An example workflow model comprising two optimization candidates, as well as detailed instructions on how to set up the required environment and perform the different steps of the method, can be found here.

EDOC 2021 - Prototype

In this demonstration, we present the MODULO framework to model, transform, deploy, and execute quantum workflows. It incorporates a workflow modeling extension for quantum computing (see Quantum4BPMN) with a graphical notation to ease the modeling of quantum workflows. Additionally, it provides an integrated toolchain supporting the automated transformation of resulting workflow models to native workflow models to retain their portability, as well as the deployment of the quantum workflow with the required services and their binding. To demonstrate the functionality, we introduce a workflow model implementing Simon's algorithm and discuss all steps, from the modeling of required deployment models, over the modeling of the quantum workflow and its transformation to a native BPMN workflow model, to the deployment of required services, and the workflow execution. Detailed instructions on how to set up the MODULO framework and perform the different steps can be found here.

ICWS 2021 - Prototype

In this paper, we motivate the need for two orchestrations that are required to implement non-trivial hybrid quantum applications: (i) the orchestration of the data- and control flow between the different components comprising the application, and (ii) the orchestration of the provisioning of the execution environment required by the application. We motivate this by a use case from the humanities, performing data preparation, clustering, and classification on costume data. Thereby, the OpenTOSCA ecosystem is used to automatically provision the corresponding execution environment. Furthermore, the Camunda BPMN engine is utilized to execute the workflow orchestrating the data- and control flow. The corresponding workflow model, topology model, as well as instructions on how to set up the required environment and execute the hybrid quantum application are available here.

Electronics 2021 - Special Issue "Quantum Computing System Design and Architecture" - Prototype

In this paper, we demonstrate how to model quantum workflows with Quantum4BPMN independent of a quantum computer to use. Therefore, the quantum computer is automatically selected during workflow runtime utilizing the NISQ Analyzer, and the workflow is dynamically adapted based on reusable workflow fragments depending on the selection. For this, a workflow model implementing Simon's algorithm and dynamically selecting quantum computers from IBM or a simulator from Rigetti is presented. The corresponding workflow model, as well as instructions on how to set up the required environment, can be found here.

UCC 2020 - Prototype

In this paper, we show how to model a workflow using Quantum4BPMN, how to transform it into a native BPMN 2.0-based workflow model, and finally, how to execute the resulting workflow model on the Camunda BPMN engine. For this, we present three workflow models implementing Simon's algorithm, the Bernstein-Vazirani algorithm, and Grover's algorithm. The corresponding workflow models can be found here.

Learn More

Disclaimer of Warranty

Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.

Haftungsausschluss

Dies ist ein Forschungsprototyp. Die Haftung für entgangenen Gewinn, Produktionsausfall, Betriebsunterbrechung, entgangene Nutzungen, Verlust von Daten und Informationen, Finanzierungsaufwendungen sowie sonstige Vermögens- und Folgeschäden ist, außer in Fällen von grober Fahrlässigkeit, Vorsatz und Personenschäden, ausgeschlossen.

About

Example use cases for quantum workflows, the MODULO framework, and the Quantum Modeling Extension (QuantME)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published