Quantum IEC Lesson 22 Utility Functions