Skip to content

Commit

Permalink
Format: Adapt to new lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
raynelfss committed Jun 11, 2024
1 parent 0c671dd commit 8e42b49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions crates/accelerate/src/target_transpiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ pub struct Target {
#[pyo3(get, set)]
pub acquire_alignment: i32,
#[pyo3(get, set)]
// TODO: Port to Rust.
pub qubit_properties: Option<Vec<PyObject>>,
#[pyo3(get, set)]
pub concurrent_measurements: Vec<Vec<usize>>,
Expand Down
24 changes: 13 additions & 11 deletions qiskit/transpiler/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def __new__( # pylint: disable=keyword-arg-before-vararg
*args, # pylint: disable=unused-argument
**kwargs, # pylint: disable=unused-argument
):
return super(InstructionProperties, cls).__new__(cls, duration=duration, error=error)
return super(InstructionProperties, cls).__new__( # pylint: disable=too-many-function-args
cls, duration, error
)

def __init__(
self,
Expand Down Expand Up @@ -301,17 +303,17 @@ def __new__( # pylint: disable=keyword-arg-before-vararg
elif not isinstance(description, str):
description = str(description)

return super(Target, cls).__new__(
return super(Target, cls).__new__( # pylint: disable=too-many-function-args
cls,
description=description,
num_qubits=num_qubits,
dt=dt,
granularity=granularity,
min_length=min_length,
pulse_alignment=pulse_alignment,
acquire_alignment=acquire_alignment,
qubit_properties=qubit_properties,
concurrent_measurements=concurrent_measurements,
description,
num_qubits,
dt,
granularity,
min_length,
pulse_alignment,
acquire_alignment,
qubit_properties,
concurrent_measurements,
)

def __init__(
Expand Down

0 comments on commit 8e42b49

Please sign in to comment.