Skip to content

Commit

Permalink
try disabling too-many-arguments on init
Browse files Browse the repository at this point in the history
  • Loading branch information
splch committed Dec 5, 2024
1 parent be7a479 commit e482e48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pennylane_ionq/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class IonQDevice(QubitDevice):
# and therefore does not support the Hermitian observable.
observables = {"PauliX", "PauliY", "PauliZ", "Hadamard", "Identity", "Prod"}

def __init__(
def __init__( # pylint: disable=too-many-arguments

Check notice on line 131 in pennylane_ionq/device.py

View check run for this annotation

codefactor.io / CodeFactor

pennylane_ionq/device.py#L131

Too many arguments (9/5) (too-many-arguments)
self,
wires,
*,
Expand All @@ -139,7 +139,7 @@ def __init__(
api_key=None,
error_mitigation=None,
sharpen=False,
): # pylint: disable=too-many-arguments
):
if shots is None:
raise ValueError("The ionq device does not support analytic expectation values.")

Expand Down Expand Up @@ -445,9 +445,9 @@ class SimulatorDevice(IonQDevice):
name = "IonQ Simulator PennyLane plugin"
short_name = "ionq.simulator"

def __init__(
def __init__( # pylint: disable=too-many-arguments
self, wires, *, noise_model="ideal", gateset="qis", shots=1024, api_key=None
): # pylint: disable=too-many-arguments
):
super().__init__(
wires=wires,
target="simulator",
Expand Down

0 comments on commit e482e48

Please sign in to comment.