I was writing answers for an exam in LaTeX. It involved long lines of repetitive code to generate simple quantum circuits. This is the result of a weekend spent trying to fix the lack of an interface to easily LaTeXify them; may contain errors. Let me know if you find any.