Closed lazyoracle closed 2 years ago
Merging #208 (9f705ec) into dev (24211ba) will increase coverage by
0.10%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## dev #208 +/- ##
==========================================
+ Coverage 74.68% 74.78% +0.10%
==========================================
Files 38 38
Lines 5534 5552 +18
==========================================
+ Hits 4133 4152 +19
+ Misses 1401 1400 -1
Impacted Files | Coverage Δ | |
---|---|---|
c3/qiskit/c3_backend.py | 93.75% <100.00%> (+0.72%) |
:arrow_up: |
c3/qiskit/c3_gates.py | 98.43% <100.00%> (+0.25%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 24211ba...9f705ec. Read the comment docs.
What
Allow updating parameters of the underlying experiment object through custom qiskit gates, as below:
Why
Closes #200
How
SetParamsGate
class in thec3.qiskit.c3_gates
modulerun_experiment
to process this gateRemarks
SetParamsGate
should be the last gate in the circuit, otherwise it raises aKeyError
params
argument should be supplied as a list with the first item a list of Quantity objects converted to a Dict of Python primitives and the second item an opt_map with the proper list nestingChecklist
Please include and complete the following checklist. Your Pull Request is (in most cases) not ready for review until the following have been completed. You can create a draft PR while you are still completing the checklist. Check the Contribution Guidelines for more details. You can mark an item as complete with the
- [x]
prefixblack
andflake8
have been used to ensure styling guidelines are metnumpydoc
style