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

test: validity for gate, job_type, measure, noise, pauli_string and other_instructions #106

Merged
merged 13 commits into from
Nov 20, 2024

Conversation

JulienCalistoTD
Copy link
Collaborator

@JulienCalistoTD JulienCalistoTD commented Nov 18, 2024

No description provided.

assert noise_build.to_other_language(language) is not None


other_instr = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have that as a fixture

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

assert measure.to_other_language(language) is not None


pauli_strings = [Ip @ Xp @ Yp @ Zp, Xp + Zp, Yp]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixture

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

assert gate_build.to_other_language(language) is not None


measures = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixture

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

+ list(GOOGLEDevice)
+ list(AZUREDevice),
)
def test_validity_run_job_type(device: AvailableDevice):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this could be a bit more generic ? I could try to rework it if you want me to

Copy link
Contributor

@Henri-ColibrITD Henri-ColibrITD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tiny tweaks

@JulienCalistoTD JulienCalistoTD merged commit 1fca9e6 into dev Nov 20, 2024
7 checks passed
@JulienCalistoTD JulienCalistoTD deleted the chore-features-for-all-providers branch November 20, 2024 14:39
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.

2 participants