Quantum Computing Homework 2 Program in MATLAB