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

Construct multi-qubit Pauli terms and sums from strings #984

Merged
merged 21 commits into from
Sep 20, 2019
Merged

Construct multi-qubit Pauli terms and sums from strings #984

merged 21 commits into from
Sep 20, 2019

Commits on Mar 29, 2019

  1. Added PauliTerm.matrix() and PauliSum.matrix() methods

    Added support for multi-qubit strings to PauliTerm.from_compact_str
    Added Tests for all of the above
    	changed:       pyquil/paulis.py
    	changed:       pyquil/tests/test_paulis.py
    	changed:       pyquil/tests/test_paulis_with_placeholders.py
    jlbosse committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    2d6e7f7 View commit details
    Browse the repository at this point in the history
  2. fixed formatting to be flake8 compliant

    	changed:       pyquil/tests/test_paulis.py
    	changed:       pyquil/tests/test_paulis_with_placeholders.py
    jlbosse committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    49da535 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2019

  1. Updated matrix methods to make use of pyquil.unitary_tools.lifted_pauli

    and the tests.
    
    Made the syntactical changes requested by  @msohaibalam
    
    Zum Commit vorgemerkte Änderungen:
    	geändert:       pyquil/paulis.py
    	geändert:       pyquil/tests/test_paulis.py
    	geändert:       pyquil/tests/test_paulis_with_placeholders.py
    jlbosse committed May 30, 2019
    Configuration menu
    Copy the full SHA
    6b81833 View commit details
    Browse the repository at this point in the history
  2. fixed formatting

    jlbosse committed May 30, 2019
    Configuration menu
    Copy the full SHA
    7c0612f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    553c452 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2019

  1. Added @msohaibalams suggestions.

    Fixed the dimensions of the resulting matrices, s.t. it produces the
    same results as pyquil.unitary_tools.lifted_pauli
    jlbosse committed Jul 3, 2019
    Configuration menu
    Copy the full SHA
    cad37a4 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2019

  1. Configuration menu
    Copy the full SHA
    91ee70f View commit details
    Browse the repository at this point in the history
  2. Added better string conversion to paulis.py

     - Added PauliSum.from_compact_str()
     - Added support for multiqubit strings to PauliTerm.from_compact_str()
     - Added PauliSum.compact_str()
    
    	changed:       paulis.py
    	changed:       tests/test_paulis.py
    	changed:       tests/test_paulis_with_placeholders.py
    jlbosse committed Aug 31, 2019
    Configuration menu
    Copy the full SHA
    9f27c7e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5aa27eb View commit details
    Browse the repository at this point in the history
  4. Updated the changelog and docs

    	changed:       CHANGELOG.md
    	changed:       docs/source/apidocs/pauli.rst
    jlbosse committed Aug 31, 2019
    Configuration menu
    Copy the full SHA
    3f5a7c6 View commit details
    Browse the repository at this point in the history
  5. fixed regex formatting

    jlbosse committed Aug 31, 2019
    Configuration menu
    Copy the full SHA
    2891407 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5e7a47e View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2019

  1. Configuration menu
    Copy the full SHA
    917db7d View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2019

  1. Configuration menu
    Copy the full SHA
    e761981 View commit details
    Browse the repository at this point in the history
  2. Added more tests and assertions to catch wrong pauli strings.

    Committed changes:
    	changed:       paulis.py
    	changed:       tests/test_paulis.py
    jlbosse committed Sep 18, 2019
    Configuration menu
    Copy the full SHA
    f71a67c View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2019

  1. Added more tests for PauliSum.from_compact_str()

     - Test that simplification works correctly
     - Test that PauliSums of length 1 work correctly
     - Test that strings containing the identity work correctly
    
    Changed files:
    	changed:       tests/test_paulis.py
    jlbosse committed Sep 19, 2019
    Configuration menu
    Copy the full SHA
    6e3c99b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    63641b6 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2019

  1. Update CHANGELOG.md

    Co-Authored-By: Peter Karalekas <peter@rigetti.com>
    jlbosse and karalekas authored Sep 20, 2019
    Configuration menu
    Copy the full SHA
    6b0bd42 View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG.md

    Co-Authored-By: Peter Karalekas <peter@rigetti.com>
    jlbosse and karalekas authored Sep 20, 2019
    Configuration menu
    Copy the full SHA
    e5ee352 View commit details
    Browse the repository at this point in the history
  3. Update CHANGELOG.md

    Co-Authored-By: Peter Karalekas <peter@rigetti.com>
    jlbosse and karalekas authored Sep 20, 2019
    Configuration menu
    Copy the full SHA
    07d6882 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d91b12e View commit details
    Browse the repository at this point in the history