rigetti / rigetti/pyquil

Easy interface for getting the matrix form of a PauliTerm/Sum

Open
#978 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion :thinking:
Dominant language
Python
Stars
1.5k
Forks
358
Avg merge
1d 58m
Merged PRs (30d)
4

Description

In PR #867, @jlbosse is looking to extend the PauliTerm/PauliSum interface to include a method for getting its matrix representation. In the unitary_tools module, there exists a function lifted_pauli which seems to accomplish this task, but is not necessarily well-known or well-documented functionality. This issue is for discussing that feature request, and for designing such an interface.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review PR #867 and the existing lifted_pauli function in the unitary_tools module first. Define the proposed PauliTerm/PauliSum matrix-representation interface, including how it should relate to lifted_pauli; the work is done when the interface and its expected behavior are agreed and documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.