Closed shahidee44 closed 1 year ago
Merging #193 (cfe711d) into dev (985ad99) will decrease coverage by
0.10%
. The diff coverage is96.85%
.
@@ Coverage Diff @@
## dev #193 +/- ##
==========================================
- Coverage 97.81% 97.72% -0.10%
==========================================
Files 33 37 +4
Lines 6325 6769 +444
==========================================
+ Hits 6187 6615 +428
- Misses 138 154 +16
Impacted Files | Coverage Δ | |
---|---|---|
setup.py | 100.00% <ø> (ø) |
|
tests/test_backends.py | 51.47% <0.00%> (-1.56%) |
:arrow_down: |
tests/test_gate_applicators_vectorized.py | 92.23% <92.23%> (ø) |
|
tests/test_gate_applicators_braket.py | 98.18% <98.18%> (ø) |
|
tests/test_gate_applicators_pyquil.py | 98.19% <98.19%> (ø) |
|
tests/test_gate_applicators_qiskit.py | 98.21% <98.21%> (ø) |
|
tests/test_gates.py | 100.00% <100.00%> (ø) |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
Since, I proposed the design in this PR, it makes sense that either @raulconchello, @Q-lds, be the primary reviewer of this PR. I am adding you both for now. I will be reviewing it too
NOTE: If not done yet, run black
formatter before merging
Description
Gate
Objects are structured. Each non-core openqaoa module will need aGateApplicator
object which contains library specific functions on how the gates are applied to the circuit. TheGate
Object now acts as an interface.GateApplicator
Object that, together with theGate
Object apply the right library gate to the Backend's internal circuitGateApplicator
for Qiskit, Braket and Pyquil backends.DEVICE_NAME_TO_OBJECT_MAPPER
,DEVICE_ACCESS_OBJECT_MAPPER
. Based on the presence of the particular module.get_qaoa_backend
andcreate_device
updated to dynamically find a module if it has been installed.plugin_finder.py
is added which helps facilitate the function needed to dynamically find modules within the environment.test_gates.py
unitteststest_gate_applicator_qiskit.py
unitteststest_gate_applicator_braket.py
unitteststest_gate_applicator_pyquil.py
unitteststest_gate_applicator_vectorized.py
unittestssetup.py
to includeentry_points
which will be used by plugins to interact with core code.core
code dependency on any pluginChecklist
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Name the new unit-tests that you have added along with this change.
run all tests.