CQCL / tket

Source code for the TKET quantum compiler, Python bindings and utilities
https://tket.quantinuum.com/
Apache License 2.0
254 stars 48 forks source link

Give a warning for shots based execution without measurements #1355

Open CalMacCQ opened 5 months ago

CalMacCQ commented 5 months ago

Currently if you do shots based execution on AerBackend and forget to add measurements the circuit will execute and return a BackendResult with no counts. BackendResult.get_counts will return an empty counter.

Maybe we should give a warning in this case and inform the user that their circuit has no measurements in it.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale.