Skip to content

Fix #174: remove vop from M commands - #180

Merged
thierry-martinez merged 15 commits into
TeamGraphix:masterfrom
thierry-martinez:remove_vops
Jul 25, 2024
Merged

Fix #174: remove vop from M commands#180
thierry-martinez merged 15 commits into
TeamGraphix:masterfrom
thierry-martinez:remove_vops

Conversation

@thierry-martinez

Copy link
Copy Markdown
Collaborator

This commit removes the vop attribute from M commands, and adds a clifford method to M commands: this method takes a Clifford gate and returns a new M command where the plane, the angle, and the s- and t-domains have been updated, so as to be equivalent to apply the given Clifford gate prior to the measure.

Standardization, signal shifting and tensor network simulator have been fixed for planes other than XY.

This commit removes the `vop` attribute from `M` commands, and adds a
`clifford` method to `M` commands: this method takes a Clifford gate
and returns a new `M` command where the plane, the angle, and the s-
and t-domains have been updated, so as to be equivalent to apply the
given Clifford gate prior to the measure.

Standardization, signal shifting and tensor network simulator have
been fixed for planes other than XY.
Comment thread graphix/command.py
Comment thread graphix/pattern.py
@shinich1
shinich1 requested a review from EarlMilktea July 25, 2024 02:32
@shinich1

shinich1 commented Jul 25, 2024

Copy link
Copy Markdown
Contributor

@thierry-martinez thanks! this looks really nice approach. examples rendered well. we might want to add Clifford to API docs page, docs/source/data.rst (or I can do this after this is merged).
Can @EarlMilktea also take a quick look?

@shinich1 shinich1 linked an issue Jul 25, 2024 that may be closed by this pull request
Comment thread graphix/command.py
Comment thread graphix/command.py Outdated
Comment thread graphix/command.py
Comment thread graphix/command.py Outdated
Comment thread graphix/pattern.py Outdated
Comment thread graphix/sim/tensornet.py Outdated
Comment thread tests/test_pattern.py
Comment thread tests/test_pattern.py Outdated
Comment thread tests/test_pattern.py Outdated
Comment thread tests/test_pattern.py Outdated
@shinich1

Copy link
Copy Markdown
Contributor

@thierry-martinez I think we can merge #182 before this, so that ruff will be added to checks (resolving that may auto-resolve some of above comments by @EarlMilktea).

@EarlMilktea

Copy link
Copy Markdown
Contributor

@thierry-martinez Could you resolve the remaining three threads? Once ready, I will approve merge.

@thierry-martinez

Copy link
Copy Markdown
Collaborator Author

Oops, sorry for having missed them (they were folded in "3 hidden more conversations")! All of them should be fixed now. Thanks!

Comment thread graphix/command.py
@thierry-martinez
thierry-martinez merged commit 7e46a71 into TeamGraphix:master Jul 25, 2024
@thierry-martinez
thierry-martinez deleted the remove_vops branch July 25, 2024 21:05
@thierry-martinez

Copy link
Copy Markdown
Collaborator Author

Merged. Thanks!

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.

Remove vop from the M commands

3 participants