Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all DynamicsBackend code/tests to work with hex for meas level 2 #379

Merged
merged 5 commits into from
Feb 20, 2025

Conversation

DanPuzzuoli
Copy link
Collaborator

Summary

Closes #375

Details and comments

A current issue I'm having with resolving all test cases is that the Result object, in a test like

test.dynamics.backend.test_dynamics_backend.TestDynamicsBackend.test_schedule_memory_slot_num

actually converts things back into integers (as strings) when calling get_counts.

@DanPuzzuoli
Copy link
Collaborator Author

To fix the tests I decided to directly look at the internal memory of the Result objects (through Result.to_dict()), which are stored in hex, and validate correctness. We can't control the behaviour the Result object, and at least this way we can validate the outputs of DynamicsBackend.

@DanPuzzuoli DanPuzzuoli merged commit 16d8466 into qiskit-community:main Feb 20, 2025
5 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Measurement level 2 hex
1 participant