Skip to content

Commit

Permalink
PYQRACK_HOST_POINTER_DEFAULT_ON
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Dec 22, 2024
1 parent 262f6b0 commit 452c217
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ help:
build-deps:
ifneq ($(OS),Windows_NT)
ifeq ($(QRACK_PRESENT),)
git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout 82e68a058a2fe471b3f89102a6a3e5f486387242; cd ..
git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout d906dffdf033441e221573f989c3760bc325ca03; cd ..
endif
mkdir -p qrack/build
ifeq ($(UNAME_S),Linux)
Expand Down
2 changes: 1 addition & 1 deletion pennylane_qrack/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.11.6"
__version__ = "0.12.0"
5 changes: 1 addition & 4 deletions pennylane_qrack/qrack_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"""
Base device class for PennyLane-Qrack.
"""
from collections import OrderedDict
from functools import reduce
import cmath, math
import os
Expand All @@ -30,8 +29,6 @@
StatePrep,
BasisState,
QubitUnitary,
CRZ,
PhaseShift,
Adjoint,
)
from pennylane.wires import Wires
Expand Down Expand Up @@ -162,7 +159,7 @@ class QrackDevice(QubitDevice):
# Use CPU/GPU method hybridization? (Default is "false")
isCpuGpuHybrid = True
# Allocate GPU buffer from general host heap? (Default is "false"; "true" might improve performance or reliability in certain cases, like if using an Intel HD as accelerator)
isHostPointer = False
isHostPointer = True if os.environ.get('PYQRACK_HOST_POINTER_DEFAULT_ON') else False
# Noise parameter. (Default is "0"; depolarizing noise intensity can also be controlled by "QRACK_GATE_DEPOLARIZATION" environment variable)
noise = 0

Expand Down

0 comments on commit 452c217

Please sign in to comment.