A user might erroneously intuit that passing prob=nullptr to functions like applyQubitMeasurementAndGetProb specifies to ignore/discard the probability, though presently it will instead seg-fault. It is trivial to incorporate the expected functionality (and document it), else validate these args are non-null (requires extending the unit tests)