get_circuit for propagators`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 57/100
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
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
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Algorithmiq/monoprop
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Algorithmiq/monoprop#193 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Algorithmiq/monoprop#192 ·
Maintainers usually reply within 1 day
-
bug performance
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Algorithmiq/monoprop#191 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Algorithmiq/monoprop#189 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
Algorithmiq/monoprop#405 ·
Maintainers usually reply within 1 day
All issues in Algorithmiq/monoprop
Similar issues
-
Bug: negative DECIMAL with fewer digits than its scale prints as "0.-5"Possibly taken @adsharma claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
LadybugDB/ladybug#1311 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 91/100
FujiNetWIFI/fujinet-firmware#2045 ·
Maintainers usually reply within 1 day
-
(S1 - Need confirmation)
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
CleverRaven/Cataclysm-DDA#89159 ·
Maintainers usually reply within 1 day
-
area:libnvmpi bug P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gjrtimmer/jetson-nvmpi#33 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day