4 qubit simulation

Thanks for the detailed explanation! Helped me a lot!