Implement expectation values for the MPS Simulator

Đang mở
#1,122 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@rupasri118 đang làm issue này rồi.

Từ ngày 18/10/2026.

  • #1132 của @rupasri118 — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C++
Star
702
Fork
219
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quantumlib/qsim

Tất cả issue của quantumlib/qsim

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.