PennyLaneAI / pennylane-pq

Contains the PennyLane ProjectQ plugin. This plugin provides three devices to work with PennyLane - the ProjectQ IBM device, the ProjectQ quantum simulator, and the ProjectQ classical simulator.
https://docs.pennylane.ai/projects/projectq
Apache License 2.0
16 stars 9 forks source link

Introducing 'qubit' as a model in the capabilities dictionary #56

Closed antalszava closed 4 years ago

antalszava commented 4 years ago

Description of the Change: Adding the 'model': 'qubit' entry into the capabilities dictionary. Adjusting tests that previously used CV operators to use custom created operators.

Benefits: Now _ProjectQDevice can act as a qubit device while using PL core. This fixed several tests.

Possible Drawbacks: N/A

Related GitHub Issues: N/A

codecov[bot] commented 4 years ago

Codecov Report

Merging #56 into master will not change coverage. The diff coverage is 100%.

@@           Coverage Diff           @@
##           master      #56   +/-   ##
=======================================
  Coverage   98.26%   98.26%           
=======================================
  Files           6        6           
  Lines         230      230           
=======================================
  Hits          226      226           
  Misses          4        4
Impacted Files Coverage Δ
pennylane_pq/devices.py 97.48% <100%> (ø) :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 a76ac32...1dc0343. Read the comment docs.