This repository contains the replication package for the experiments conducted in the paper "LLM Prompt Exploration for The Automatic Generation of Quantum Algorithm Explanations".
- Install
ollamafrom the following link - Obtain a GPT-3 API key from OpenAI by following the instructions here
- Install the following Python libraries:
openaiollamapandasseaborn
explanation_generation/: Contains the code for generating quantum code explanations using LLMs.explanation_human/andexplanation_human_anonym/: Contains the explanations from human-written prompts.explanation_iterative/andexplanation_iterative_anonym/: Contains the explanations from iterative generated prompts.figures/: Contains the figures used in the paper.forms/: Contains the forms used for the evaluation of explanations.quantum_code/: Contains the quantum algorithms used to obtain the explanations.analysis.ipynb: Jupyter notebook for the analysis of the evaluation results and to generate the figures in the paper.anonym_data.ipynb: Jupyter notebook for anonymizing the explanations before the evaluation.results.csv: The evaluation results for RQ1, RQ2, and RQ3.results_iterative.csv: The evaluation results for RQ4.