-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev gate applicator #193
Dev gate applicator #193
Conversation
…ds on GateApplicator
Codecov Report
@@ 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
📣 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 |
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.