Skip to content

Commit

Permalink
Merge pull request #42 from XanaduAI/pylinting
Browse files Browse the repository at this point in the history
pylinting
  • Loading branch information
cgogolin committed Jan 2, 2019
2 parents f850e93 + 4953b63 commit 8b64b42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pennylane_pq/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class ProjectQSimulator(_ProjectQDevice):
short_name = 'projectq.simulator'
_operation_map = PROJECTQ_OPERATION_MAP
_expectation_map = dict({key:val for key, val in _operation_map.items()
if val in [XGate, YGate, ZGate, HGate]} , **{'Identity': None})
if val in [XGate, YGate, ZGate, HGate]}, **{'Identity': None})
_circuits = {}
_backend_kwargs = ['gate_fusion', 'rnd_seed']

Expand Down
4 changes: 2 additions & 2 deletions pennylane_pq/pqops.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def __str__(self):
return self.name

try:
from projectq.ops import MatrixGate
except:
from projectq.ops import MatrixGate #pylint: disable=ungrouped-imports
except ImportError:
MatrixGate = BasicGate

class BasicProjectQMatrixGate(MatrixGate): # pylint: disable=too-few-public-methods
Expand Down

0 comments on commit 8b64b42

Please sign in to comment.