Skip to content

About

Automated Detection of Quantum Bug-Fix Patterns

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

163 Commits

Folders and files

Repository files navigation

Automated Detection of Quantum Bug Fix-Patterns GitHub version

Q-PAC

Visual Studio GitHub

Q-PAC is an automated tool that detects bug-fix patterns in quantum codes. The tools classifies pairs of buggy and patched codes based on AST-parsers, regex checks and other semantic checks. Currently, the tool is still in a proof-of-concept (PoC) stage and has been designed only for certain classes of Qiskit codes:

  • ExcessiveMeasurements
  • IncorrectInitializations
  • IncorrectMeasurements
  • IncorrectOpaqueGates
  • IncorrectHadamardGates
  • IncorrectStandardGates
  • UnequalBits

Examples demonstrations have been provided under the tests folder.

Instructions to run the source code:

  1. Clone this repository:
git clone https://github.com/pranavknayak/Q-PAC
  1. Navigate to the directory of the main.py file:
cd src
  1. Pass in two strings of code, one being the buggy and the other, the patched one to the bugInvestigator.classifyBugs(buggy=..., patched=..., commandLine=...) method.

  2. Run the following command in the console:

python3 main.py

About

Automated Detection of Quantum Bug-Fix Patterns

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages