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

Refactor Pauli and related modules #228

Merged
merged 61 commits into from
Nov 4, 2024
Merged

Refactor Pauli and related modules #228

merged 61 commits into from
Nov 4, 2024

Conversation

EarlMilktea
Copy link
Contributor

Description of the change:

  • change module structures to resolve circular import
  • introduce Pauli namespace
  • cleanup duplication
  • add tests

docs/source/data.rst Outdated Show resolved Hide resolved
graphix/measurements.py Outdated Show resolved Hide resolved
@shinich1
Copy link
Contributor

@thierry-martinez

graphix/pauli.py Outdated Show resolved Hide resolved
Copy link
Contributor

@thierry-martinez thierry-martinez left a comment

Choose a reason for hiding this comment

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

This is a very good improvement! Thanks! I made some minor comments.

graphix/command.py Outdated Show resolved Hide resolved
graphix/_db.py Show resolved Hide resolved
graphix/clifford.py Outdated Show resolved Hide resolved
graphix/clifford.py Outdated Show resolved Hide resolved
graphix/pauli.py Outdated Show resolved Hide resolved
graphix/pauli.py Show resolved Hide resolved
graphix/pauli.py Outdated Show resolved Hide resolved
graphix/sim/base_backend.py Outdated Show resolved Hide resolved
tests/test_statevec_backend.py Outdated Show resolved Hide resolved
tests/test_statevec_backend.py Outdated Show resolved Hide resolved
Copy link
Contributor

@thierry-martinez thierry-martinez left a comment

Choose a reason for hiding this comment

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

Thanks. There are still two uses of cached_property that don’t appear to be necessary.

graphix/_db.py Show resolved Hide resolved
graphix/fundamentals.py Outdated Show resolved Hide resolved
graphix/fundamentals.py Outdated Show resolved Hide resolved
Copy link
Contributor

@thierry-martinez thierry-martinez left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks.

@EarlMilktea EarlMilktea merged commit 7da2095 into master Nov 4, 2024
23 checks passed
@EarlMilktea EarlMilktea deleted the refactor-pc branch November 4, 2024 09:05
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