Part of Building an effective general-purpose quantum simulator for the design and analysis of quantum circuits.