Skip to content

Commit

Permalink
Happify ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Linde committed Dec 20, 2024
1 parent bd00869 commit 1921969
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qgym/envs/scheduling/machine_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ def from_mapping(cls, machine_properties: Mapping[str, Any]) -> MachinePropertie
"""
checked_mp = cls._check_machine_properties_mapping(machine_properties)

_machine_properties = cls(checked_mp["n_qubits"])
_machine_properties.add_gates(checked_mp["gates"])
_machine_properties.add_same_start(checked_mp["same_start"])
_machine_properties.add_not_in_same_cycle(checked_mp["not_in_same_cycle"])
return _machine_properties
machine_properties_ = cls(checked_mp["n_qubits"])
machine_properties_.add_gates(checked_mp["gates"])
machine_properties_.add_same_start(checked_mp["same_start"])
machine_properties_.add_not_in_same_cycle(checked_mp["not_in_same_cycle"])
return machine_properties_

@classmethod
def from_file(cls, filename: str) -> MachineProperties:
Expand Down

0 comments on commit 1921969

Please sign in to comment.