Skip to content

Conversation

@mpharrigan
Copy link
Collaborator

Qualtran generally depends on cirq, but we usually take a little bit of care to move cirq to local imports where it's only needed if you're doing really cirq-y things (like converting to a cirq op). This PR does general maintenance to move cirq imports to local imports in _infra/ submodules and a couple other easy places.

This PR also patches in changes to some of the _infra/ test modules (and a couple other easy places) to use pytest.importorskip('cirq') inside tests that require cirq. In general, we'll always have tests that depend on cirq because it's a battle-tested "reference implementation" but with these changes you can run a couple sanity checks on modules without hard dependencies on cirq. Otherwise pytest just fails to collect the tests and gives up immediately.

@mpharrigan mpharrigan merged commit 0f8f1ba into quantumlib:main Oct 9, 2024
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