Implement expectation values for the MPS Simulator

Aperta
#1,122 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@rupasri118 ci sta già lavorando.

Dal 18/10/2026.

  • #1132 di @rupasri118 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
backend

Direzione di ricerca

Read lib/mps_simulator.h and locate the stubbed ExpectationValue function; docs/mps.md describes the current limitation. Start by tracing how MPS simulation represents states and observables, then add tests for expectation values. Done means the function computes observable expectation values for MPS states and the tests verify the results.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What is your request or suggestion?

In docs/mps.md, expectation values are listed as a current limitation

  • Expectation value compute is not yet implemented, ExpectationValue exists but is a stub and returns a placeholder value of (-10, -10).

It would be useful to implement expectation-value calculations for the MPS simulator, allowing users to calculate expectation values of observables for simulated MPS states.

What solution or approach do you envision?

In lib/mps_simulator.h, implement the currently stubbed ExpectationValue function.
The implementation should integrate with the existing MPS simulation and include appropriate tests to verify the implementation.

How urgent is this for you?

None

Lingua principale
C++
Stelle
702
Fork
219
Merge medio
1g 2h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quantumlib/qsim

Tutte le issue di quantumlib/qsim

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.