Skip to content

Commit

Permalink
Move logic to devices
Browse files Browse the repository at this point in the history
  • Loading branch information
erick-xanadu committed Dec 4, 2023
1 parent 7139341 commit a3d2f6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
8 changes: 0 additions & 8 deletions pennylane_lightning/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,4 @@
# limitations under the License.
"""PennyLane lightning module."""

from pathlib import Path
from ._version import __version__


lightning_qubit_config_file = Path(__file__).parent / "src" / "lightning_qubit.toml"
lightning_kokkos_config_file = Path(__file__).parent / "src" / "lightning_kokkos.toml"
lightning_gpu_config_file = Path(__file__).parent / "src" / "lightning_gpu.toml"

__all__ = ["__version__", "lightning_qubit_config_file", "lightning_kokkos_config_file", "lightning_gpu_config_file"]
4 changes: 2 additions & 2 deletions pennylane_lightning/lightning_gpu/lightning_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"""

from warnings import warn
from pathlib import Path
import numpy as np

from pennylane_lightning.core import lightning_gpu_config_file as config_file
from pennylane_lightning.core.lightning_base import (
LightningBase,
LightningBaseFallBack,
Expand Down Expand Up @@ -231,7 +231,7 @@ class LightningGPU(LightningBase): # pylint: disable=too-many-instance-attribut
operations = allowed_operations
observables = allowed_observables
_backend_info = backend_info
config = config_file
config = Path(__file__).parents[1] / "core" / "src" / "lightning_gpu.toml"

def __init__(
self,
Expand Down
4 changes: 2 additions & 2 deletions pennylane_lightning/lightning_kokkos/lightning_kokkos.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"""

from warnings import warn
from pathlib import Path
import numpy as np

from pennylane_lightning.core import lightning_kokkos_config_file as config_file
from pennylane_lightning.core.lightning_base import (
LightningBase,
LightningBaseFallBack,
Expand Down Expand Up @@ -186,7 +186,7 @@ class LightningKokkos(LightningBase):
operations = allowed_operations
observables = allowed_observables
_backend_info = backend_info
config = config_file
config = Path(__file__).parents[1] / "core" / "src" / "lightning_kokkos.toml"

def __init__(
self,
Expand Down
4 changes: 2 additions & 2 deletions pennylane_lightning/lightning_qubit/lightning_qubit.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"""

from warnings import warn
from pathlib import Path
import numpy as np

from pennylane_lightning.core import lightning_qubit_config_file as config_file
from pennylane_lightning.core.lightning_base import (
LightningBase,
LightningBaseFallBack,
Expand Down Expand Up @@ -187,7 +187,7 @@ class LightningQubit(LightningBase):
operations = allowed_operations
observables = allowed_observables
_backend_info = backend_info
config = config_file
config = Path(__file__).parents[1] / "core" / "src" / "lightning_qubit.toml"

def __init__(
self,
Expand Down

0 comments on commit a3d2f6f

Please sign in to comment.