begin quantum part