Possibly add side-by-side comparison of memory-lean and compute-lean workflows to User Guide

Open
#64 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
57/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp
Domain
documentation

Research direction

Start with the features/evaluation page and existing tutorials, which the issue says describe only single-evaluation workflows. Compare the two example flows in the issue: one builds a graph for a single evaluation, while the other evaluates a parameterized circuit. Done means the User Guide clearly explains when to use each workflow and includes examples; no specific file paths or tests are named.

Written by the indexing model from the issue text.

Description

documentation enhancement

The features/evaluation page talks about MajoranaPropagator.build_graph but only in text, not in code examples, and I think this is the only place that function is mentioned in the docs.
The tutorials also all seem to only have single evaluation workflows.
I ended up faffing around trying to use PauliPropagator.from_circuit with an unbound circuit and bind parameters later, which I don't think works.

It would be really useful to have a page explicitly setting out the memory-lean single evaluation flow vs compute-lean multiple evaluation flow!

e.g. when to use

propagator = PauliPropagator(observable, circuit.initial_state, cutoff=16)
propagator.build_graph(circuit)
fn = propagator.expectation_value_functional()

and when to instead use

propagator = PauliPropagator.from_circuit(circuit, observable, cutoff=16)
propagator.expectation_value()
Dominant language
C++
Stars
52
Forks
2
Avg merge
1d 2h
Merged PRs (30d)
22

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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 Algorithmiq/monoprop

All issues in Algorithmiq/monoprop

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.