unitaryfund / qrack

Comprehensive, GPU accelerated framework for developing universal virtual quantum processors
https://qrack.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
174 stars 38 forks source link

Replace !size() pattern with empty() #1005

Closed WrathfulSpatula closed 4 months ago

WrathfulSpatula commented 4 months ago

This PR replaces all instances of the !size() pattern (for a vector) with empty(), commonly used for conditionals all throughout Qrack. Ternary expressions on size() have also had their order reversed, to use empty().