Skip to content

cccorn/Q-ATPG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Q-ATPG

The implementation of “Automatic Test Pattern Generation for Robust Quantum Circuit Testing”.

Requirements

  • Python 3
  • Qiskit
  • CVXPY

Installation

  1. Clone this repo:
git clone https://github.com/cccorn/Q-ATPG.git
cd Q-ATPG
  1. Install the python packages:
pip install qiskit
pip install cvxpy
  1. Create directories:
mkdir cache results
  1. Precompute and cache the data:
python gen_cache.py

Run

python genSPD_samp.py

This script executes the following steps:

  • Generate the SPD for a random fault, and store it in results/.
  • Apply the SPD on CUT by simulating the sampling algorithm.
  • Return the final estimation and its expected value.

You can modify the configurations in lib/config.py to change the parameters.

About

The implementation of “Automatic Test Pattern Generation for Robust Quantum Circuit Testing”.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages