Skip to content

Fix #1062: ignore warning from a Cirq function about Qiskit #1063

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

Merged
merged 2 commits into from
Jun 4, 2025

Conversation

mhucka
Copy link
Contributor

@mhucka mhucka commented Jun 3, 2025

The code in src/openfermion/testing/wrapped.py calls cirq.testing.assert_implements_consistent_protocols. The latter funtion prints warnings about the Cirq function
assert_qasm_is_consistent_with_unitary when Qiskit is not installed. This is irrelevant to testing OpenFermion; OpenFermion doesn't do anything with QASM and we certainly don't want to introduce a dependency on Qiskit.

Resolves issue #1062.

mhucka added 2 commits June 3, 2025 12:23
The code in `src/openfermion/testing/wrapped.py` calls
`cirq.testing.assert_implements_consistent_protocols`. The latter
funtion prints warnings about the Cirq function
`assert_qasm_is_consistent_with_unitary` when Qiskit is not installed.
This is irrelevant to our testing; we don't do anything with QASM and we
certainly don't want to introduce a dependency on Qiskit.
@mhucka mhucka requested review from ncrubin and dstrain115 June 3, 2025 21:40
@mhucka mhucka added this pull request to the merge queue Jun 4, 2025
Merged via the queue into master with commit d8b763d Jun 4, 2025
26 checks passed
@mhucka mhucka deleted the mh-pytest-ignore-qasm-warning branch June 4, 2025 01:11
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