Skip to content

ppvm-phased-pauli-word-2 Crate Refactor - #279

Merged
JonhasA merged 12 commits into
mainfrom
trait-2/ppvm-phased-pauli-word-2
Nov 6, 2026
Merged

JonhasA merged 12 commits into
mainfrom
trait-2/ppvm-phased-pauli-word-2

Conversation

@JonhasA

@JonhasA JonhasA commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

This PR introduces refactoring the ppvm-phased-pauli-word-2 crate from #204 . On top of that PR, this resulted in the following changes:

  1. ppvm-phased-pauli-word-2 owns Phased, removing the duplicate definition from ppvm-pauli-word-2 and moving its tests.
  2. Implements LossState for ordinary PauliWord, enabling phased ordinary words to use Clifford operations. It reports no loss, panics on set_lost(), and resets the specified site to identity on clear_lost().
  3. Ports phased multiplication from traits-2: rebuild the trait tower, engine, tableau and symbolic ring as ppvm-*-2 #204 without any changes

@JonhasA
JonhasA requested a review from david-pl November 4, 2026 16:37
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-06 16:22 UTC

@david-pl david-pl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good PR, just needs some small changes.

Comment thread crates/ppvm-pauli-word-2/src/data.rs Resolved
Comment thread crates/ppvm-pauli-word-2/src/data.rs Resolved

@david-pl david-pl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good, thanks!

Comment thread crates/ppvm-traits-2/src/loss.rs Outdated
}

/// Loss state associated with word sites.
pub trait LossState {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we make this LossState: LossInfo?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

that's a good idea, yeah, I'll include that

@JonhasA
JonhasA merged commit 3ee70f8 into main Nov 6, 2026
14 checks passed
@JonhasA
JonhasA deleted the trait-2/ppvm-phased-pauli-word-2 branch November 6, 2026 16:22
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