public static IQuantumBasisElementCollection generateAutomatedElementCollection(int numLevels)
        {
            IQuantumBasisElement[] elements = new IQuantumBasisElement[numLevels];
            string autoID;
            for (int i = 0; i < numLevels; i++)
            {
                autoID = "basisAutoID" + i.ToString();
                elements[i] = generateBasisElement(QuantumBasisElementItemFactory.generateBasisElementItem(autoID));
            }

            return generateBasisElementCollection(elements);
        }
        public IQuantumBasisElement[] ExportAsArray()
        {
            int count = countObjects();
            IQuantumBasisElement[] result = new IQuantumBasisElement[count];

            for (int i = 0; i < count; i++)
            {
                result[i] = (IQuantumBasisElement)getObject(i);
            }

            return result;
        }