Generate random stabilizer quantum states explicitly.
The proof of the implemented algorithm is presented in the article G.I. Struchalin et al. "Experimental Estimation of Quantum State Properties from Classical Shadows", PRX Quantum 2, 010307 (2021), in Appendix A.
- Numpy – the fundamental package for scientific computing with Python.
To start sampling n-qubit random stabilizer states simply import the module and call the function random_stabilizer_state(n)
. It will produce a Numpy array with 2n complex elements. For example:
import randstab as rs
rs.random_stabilizer_state(3)