Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

get_circuit for propagators`

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
backend

Research direction

Read the MajoranaPropagator implementation and build_graph entry point to see how gates, parameters, and contracted gates are stored. Then check existing tests for graph building and circuit equality. Done when get_circuit returns an equivalent Circuit from the supplied parameters, with the boolean option controlling whether contracted gates are included.

Written by the indexing model from the issue text.

Description

documentation enhancement
Motivation

Since graph building can be done multiple times on the same propagator, it would be convenient to have a function that returns the underlying circuit

Proposed feature

get_circuit function that returns Circuit with all the gates and parameters (argument to get_circuit). Depending on the additional boolean keyword, it should include/not include contracted gates.

Proposed API or usage example (optional)

circuit = Circuit(...)
mp = MajoranaPropagator(...)
mp.build_graph(circuit)
circuit2 = mp.get_circuit(circuit.parameters)
assert circuit == circuit2

Additional context

No response

Dominant language
C++
Stars
52
Forks
2
Avg merge
16h 47m
Merged PRs (30d)
27

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.