Skip to content

Conversation

@emilkovacev
Copy link
Collaborator

Adds tests for a few custom experiments and circuit creation functions. Currently uses fake backends with small parameter inputs to validate that the end-to-end flow works as expected.

This method can be extended to some of the helper functions used for CLOPS and Mirror. It could also be valuable to use qiskit-aer with some sort of randomization seed to validate that the result value without noise for benchmarks is correct, that way we can ensure that these benchmarks are calculated correctly.

The tests found a few errors that should be addressed in following PRs:

  • DynamicCircuitsRB and McmRB rely on deprecated pulse code, and crash currently
  • BellExperiment attempts to open matplotlib when analysis_results is called, which is incorrect
  • MirrorRB has no attribute '_get_basis_gates'

The content of these tests (and parameters) should be double-checked for validity.

@dcmckayibm
Copy link
Collaborator

Added an issue for the first bullet point #63

@dcmckayibm
Copy link
Collaborator

The mirror RB failing is not a surprise, I think it's an open issue

@dcmckayibm
Copy link
Collaborator

Can you resolve the readme conflicts then I'll merge

@emilkovacev
Copy link
Collaborator Author

The mirror RB failing is not a surprise, I think it's an open issue

This PR may fix the issue: #46. In any case, the tests should now be able to validate if it does or not.

@dcmckayibm dcmckayibm merged commit 2ac5e5d into main Jun 24, 2025
2 checks passed
@dcmckayibm dcmckayibm deleted the add-tests branch June 24, 2025 15:55
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.

3 participants