Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies = [
"cirq-core == 1.4.1",
"genQC == 0.1.0",
"numpy >= 1.23",
"pennylane == 0.39.0",
"pennylane == 0.42.3",
"pytket == 2.4.1",
"pytket-qiskit == 0.68.0",
"pytket-cirq == 0.40.0",
Expand Down
3 changes: 2 additions & 1 deletion quick/backend/qiskit_backends/fake_ibm_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import numpy as np
from numpy.typing import NDArray
import warnings

from qiskit.primitives import BackendSamplerV2 as BackendSampler # type: ignore
from qiskit_aer import AerSimulator # type: ignore
Expand Down Expand Up @@ -113,7 +114,7 @@ def __init__(
self._op_backend = AerSimulator.from_backend(backend, device="GPU", method="unitary")
else:
if self.device == "GPU" and available_devices["GPU"] is None:
print("Warning: GPU acceleration is not available. Defaulted to CPU.")
warnings.warn("Warning: GPU acceleration is not available. Defaulted to CPU.")
self._counts_backend = BackendSampler(backend=AerSimulator.from_backend(backend))
self._op_backend = AerSimulator.from_backend(backend, method="unitary")

Expand Down
2 changes: 1 addition & 1 deletion quick/circuit/ansatz.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Ansatz:

```python
from quick.circuit import Ansatz, QiskitCircuit
from quick.circuit.circuit_utils import reshape, flatten
from quick.circuit.utils import reshape, flatten
from quick.random import generate_random_state
from scipy.optimize import minimize

Expand Down
Loading
Loading