Add implementation of Estimator primitive to ffsim.qiskit

Open
#174 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api, backend

Research direction

Start by reviewing the Qiskit BaseEstimatorV2 interface and the existing ffsim.qiskit circuit support. Define the reverse_jordan_wigner entry point for SparsePauliOp conversion, then trace circuit simulation through ffsim.linear_operator to determine how expectation values should be computed. Done means the Estimator interface supports the gates provided by ffsim.qiskit and returns expectation values.

Written by the indexing model from the issue text.

Description

Implementation of the Qiskit Estimator interface that supports gates from the ffsim.qiskit module.

This can be implemented as follows:

  • Implement a function ffsim.qiskit.reverse_jordan_wigner which accepts a SparsePauliOp and outputs a FermionOperator
  • Simulate the circuit and compute the expectation value by converting the FermionOperator to a LinearOperator with ffsim.linear_operator
Dominant language
Python
Stars
116
Forks
50
Avg merge
2h 1m
Merged PRs (30d)
8

Getting set up

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.

More from Qiskit/ffsim

All issues in Qiskit/ffsim

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.