pennylane-qrack 0.10.17__py3-none-win_amd64.whl → 0.10.19__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pennylane-qrack might be problematic. Click here for more details.

@@ -58,7 +58,6 @@ Identity = { properties = [ "controllable", "invertible" ] }
58
58
  # SISWAP = {}
59
59
  # SQISW = {}
60
60
  # BasisState = {}
61
- # QubitStateVector = {}
62
61
  # StatePrep = {}
63
62
  # ControlledQubitUnitary = {}
64
63
  # DiagonalQubitUnitary = {}
@@ -16,4 +16,4 @@
16
16
  Version number (major.minor.patch[-label])
17
17
  """
18
18
 
19
- __version__ = "0.10.17"
19
+ __version__ = "0.10.19"
@@ -27,7 +27,7 @@ import numpy as np
27
27
  from pennylane import DeviceError, QuantumFunctionError
28
28
  from pennylane.devices import QubitDevice
29
29
  from pennylane.ops import (
30
- QubitStateVector,
30
+ StatePrep,
31
31
  BasisState,
32
32
  QubitUnitary,
33
33
  CRZ,
@@ -158,9 +158,9 @@ class QrackDevice(QubitDevice):
158
158
  # Use GPU acceleration? (Default is "true")
159
159
  isOpenCL = True
160
160
  # Use multi-GPU (or "multi-page") acceleration? (Default is "false")
161
- isPaged = False
161
+ isPaged = True
162
162
  # Use CPU/GPU method hybridization? (Default is "false")
163
- isCpuGpuHybrid = False
163
+ isCpuGpuHybrid = True
164
164
  # 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)
165
165
  isHostPointer = False
166
166
  # Noise parameter. (Default is "0"; depolarizing noise intensity can also be controlled by "QRACK_GATE_DEPOLARIZATION" environment variable)
@@ -238,8 +238,8 @@ class QrackDevice(QubitDevice):
238
238
 
239
239
  def _apply(self):
240
240
  for op in self._circuit:
241
- if isinstance(op, QubitStateVector):
242
- self._apply_qubit_state_vector(op)
241
+ if isinstance(op, StatePrep):
242
+ self._apply_state_prep(op)
243
243
  elif isinstance(op, BasisState):
244
244
  self._apply_basis_state(op)
245
245
  elif isinstance(op, QubitUnitary):
@@ -268,7 +268,7 @@ class QrackDevice(QubitDevice):
268
268
 
269
269
  return state_vector.flatten()
270
270
 
271
- def _apply_qubit_state_vector(self, op):
271
+ def _apply_state_prep(self, op):
272
272
  """Initialize state with a state vector"""
273
273
  wires = op.wires
274
274
  input_state = op.parameters[0]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pennylane-qrack
3
- Version: 0.10.17
3
+ Version: 0.10.19
4
4
  Summary: PennyLane plugin for Qrack.
5
5
  Home-page: http://github.com/vm6502q
6
6
  Maintainer: vm6502q
@@ -0,0 +1,11 @@
1
+ pennylane_qrack/QrackDeviceConfig.toml,sha256=7DBvKiehA9a55767DRAR9di4c16jD2vpJKxP7LdwLLs,6537
2
+ pennylane_qrack/__init__.py,sha256=5iuZ5OqhRPLxj5cs9jGaUTDv55iPXRVbcDHM6FNk-5c,689
3
+ pennylane_qrack/_version.py,sha256=fAYJzkRLhGvUfolIiUi-IF4f6XVwl7lJ0J5oLQt2xO8,712
4
+ pennylane_qrack/qrack_device.cpp,sha256=hbrL0XpvT6tORcH_UUTB-8p58EA0wZ0BJaO_VKvxXL4,37821
5
+ pennylane_qrack/qrack_device.py,sha256=YhoovXH_qDH8aLBj9tl9DF9vrBv_W7WRJDanUi_SSXI,28040
6
+ pennylane_qrack-0.10.19.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
7
+ pennylane_qrack-0.10.19.dist-info/METADATA,sha256=68WOwFFwQrZtypvX6NF03O18LneGUApMTqEo5TqRbCE,5670
8
+ pennylane_qrack-0.10.19.dist-info/WHEEL,sha256=rNPRVbVGKrjWvrFestJftL7zG4L3SaPg4hx5cyTUI8U,98
9
+ pennylane_qrack-0.10.19.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
10
+ pennylane_qrack-0.10.19.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
11
+ pennylane_qrack-0.10.19.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- pennylane_qrack/QrackDeviceConfig.toml,sha256=N1o-xnt0tJUOyL1EbGgpLKfw2IvvVyuJMRdcM50mcGI,6562
2
- pennylane_qrack/__init__.py,sha256=5iuZ5OqhRPLxj5cs9jGaUTDv55iPXRVbcDHM6FNk-5c,689
3
- pennylane_qrack/_version.py,sha256=rqV0dQJu8cLln69yICzOh1lB9rRvMIW1jX_FmPgdKVU,712
4
- pennylane_qrack/qrack_device.cpp,sha256=hbrL0XpvT6tORcH_UUTB-8p58EA0wZ0BJaO_VKvxXL4,37821
5
- pennylane_qrack/qrack_device.py,sha256=9pIH3eG9O3I5vhU3GsIgtED-xRfqgmDrwxjUBr2W6po,28072
6
- pennylane_qrack-0.10.17.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
7
- pennylane_qrack-0.10.17.dist-info/METADATA,sha256=ru6-4uUcJqHuVBL9hV0QYbOdjGSaeG1Y1CgzDdDvfmM,5670
8
- pennylane_qrack-0.10.17.dist-info/WHEEL,sha256=rNPRVbVGKrjWvrFestJftL7zG4L3SaPg4hx5cyTUI8U,98
9
- pennylane_qrack-0.10.17.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
10
- pennylane_qrack-0.10.17.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
11
- pennylane_qrack-0.10.17.dist-info/RECORD,,