Skip to content

Extend get-prob functions to accept nullptr #707

@TysonRayJones

Description

@TysonRayJones

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions