In the previous chapter, we learned about nonlocal games and how we can use them to validate our understanding of quantum mechanics. We also learned how to represent states of multiple qubits and what entanglement is.
In this chapter, we will dive into a new Python package called QuTiP that will allow us to program quantum systems faster and has some cool built-in features for simulating quantum mechanics. Then we’ll learn how to use QuTiP to program a simulator for multiple qubits and see how that changes (or doesn’t!) the three main tasks for our qubits: state preparations, operations, and measurement. This will let us finish the implementation of the CHSH game from chapter 4!