In this paper, S. Goswami et. al. propose a method for detecting entanglement in a general (pure or mixed) 2-qubit quantum state using weak measurements on two copies. This repository implements the method on the IBM Quantum Experience using Qiskit.
Additional work (which is in the included notes pdf) was done to utilize one qubit additional qubit for making the weak measurements.
This code requires the Python packages numpy, pandas, and Qiskit.
The file quantum_analysis.py contains all code for interfacing with the IBM Quantum Experience, either as a simulation or a real quantum computer. classical_analysis.py processes the results from the quantum computations. analysis.py wraps the process.
To run on IBM Quantum Experience, you must provide valid IBM credentials in a JSON named ibm_creds.json. An example is provided as example_creds.json.