The implementation of “Automatic Test Pattern Generation for Robust Quantum Circuit Testing”.
- Python 3
- Qiskit
- CVXPY
- Clone this repo:
git clone https://github.com/cccorn/Q-ATPG.git
cd Q-ATPG
- Install the python packages:
pip install qiskit
pip install cvxpy
- Create directories:
mkdir cache results
- Precompute and cache the data:
python gen_cache.py
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.