Skip to content

Commit

Permalink
Correct logger import.
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandMacDoland committed Nov 1, 2023
1 parent fd62673 commit 8935b3d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions qadence/backends/pyqtorch/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@
from typing import Any

import pyqtorch.modules as pyq
from qadence import logger
import torch
from torch import Tensor

from qadence import logger
from qadence.backend import Backend as BackendInterface
from qadence.backend import BackendName, ConvertedCircuit, ConvertedObservable
from qadence.backends.utils import to_list_of_dicts
from qadence.blocks import AbstractBlock
from qadence.circuit import QuantumCircuit
from qadence.errors import Errors
from qadence.logger import get_logger
from qadence.measurements import Measurements
from qadence.overlap import overlap_exact
from qadence.states import zero_state
Expand All @@ -34,9 +33,6 @@
from .convert_ops import convert_block, convert_observable


logger = get_logger(__name__)


@dataclass(frozen=True, eq=True)
class Backend(BackendInterface):
"""PyQTorch backend."""
Expand Down Expand Up @@ -189,7 +185,8 @@ def expectation(
if error is not None:
logger.warning(
f"Errors of type {error} are not implemented for expectation yet. "
"This is ignored for now.")
"This is ignored for now."
)
fn = self._looped_expectation if self.config.loop_expectation else self._batched_expectation
return fn(
circuit=circuit,
Expand Down

0 comments on commit 8935b3d

Please sign in to comment.