pennylane-qrack 0.9.8__py3-none-macosx_13_0_x86_64.whl → 0.10.1__py3-none-macosx_13_0_x86_64.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.

@@ -1,6 +1,6 @@
1
1
  # This is the CMakeCache file.
2
2
  # For build in directory: /Users/runner/work/pennylane-qrack/pennylane-qrack/pennylane_qrack
3
- # It was generated by CMake: /usr/local/Cellar/cmake/3.30.4/bin/cmake
3
+ # It was generated by CMake: /usr/local/Cellar/cmake/3.30.5/bin/cmake
4
4
  # You can edit this file to change values found and used by cmake.
5
5
  # If you do not want to change any of the values, simply exit the editor.
6
6
  # If you do want to change a value, simply edit, save, and exit the editor.
@@ -247,15 +247,15 @@ CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
247
247
  //Minor version of cmake used to create the current loaded cache
248
248
  CMAKE_CACHE_MINOR_VERSION:INTERNAL=30
249
249
  //Patch version of cmake used to create the current loaded cache
250
- CMAKE_CACHE_PATCH_VERSION:INTERNAL=4
250
+ CMAKE_CACHE_PATCH_VERSION:INTERNAL=5
251
251
  //ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
252
252
  CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
253
253
  //Path to CMake executable.
254
- CMAKE_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.30.4/bin/cmake
254
+ CMAKE_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.30.5/bin/cmake
255
255
  //Path to cpack program executable.
256
- CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.30.4/bin/cpack
256
+ CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.30.5/bin/cpack
257
257
  //Path to ctest program executable.
258
- CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.30.4/bin/ctest
258
+ CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.30.5/bin/ctest
259
259
  //ADVANCED property for variable: CMAKE_CXX_COMPILER
260
260
  CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
261
261
  //ADVANCED property for variable: CMAKE_CXX_FLAGS
@@ -283,7 +283,7 @@ CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
283
283
  //ADVANCED property for variable: CMAKE_DLLTOOL
284
284
  CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
285
285
  //Path to cache edit program executable.
286
- CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.30.4/bin/ccmake
286
+ CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.30.5/bin/ccmake
287
287
  //Executable file format
288
288
  CMAKE_EXECUTABLE_FORMAT:INTERNAL=MACHO
289
289
  //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
@@ -342,7 +342,7 @@ CMAKE_RANLIB-ADVANCED:INTERNAL=1
342
342
  //ADVANCED property for variable: CMAKE_READELF
343
343
  CMAKE_READELF-ADVANCED:INTERNAL=1
344
344
  //Path to CMake installation.
345
- CMAKE_ROOT:INTERNAL=/usr/local/Cellar/cmake/3.30.4/share/cmake
345
+ CMAKE_ROOT:INTERNAL=/usr/local/Cellar/cmake/3.30.5/share/cmake
346
346
  //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
347
347
  CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
348
348
  //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
pennylane_qrack/Makefile CHANGED
@@ -48,10 +48,10 @@ cmake_force:
48
48
  SHELL = /bin/sh
49
49
 
50
50
  # The CMake executable.
51
- CMAKE_COMMAND = /usr/local/Cellar/cmake/3.30.4/bin/cmake
51
+ CMAKE_COMMAND = /usr/local/Cellar/cmake/3.30.5/bin/cmake
52
52
 
53
53
  # The command to remove a file.
54
- RM = /usr/local/Cellar/cmake/3.30.4/bin/cmake -E rm -f
54
+ RM = /usr/local/Cellar/cmake/3.30.5/bin/cmake -E rm -f
55
55
 
56
56
  # Escaping for special characters.
57
57
  EQUALS = =
@@ -68,7 +68,7 @@ CMAKE_BINARY_DIR = /Users/runner/work/pennylane-qrack/pennylane-qrack/pennylane_
68
68
  # Special rule for the target edit_cache
69
69
  edit_cache:
70
70
  @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..."
71
- /usr/local/Cellar/cmake/3.30.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
71
+ /usr/local/Cellar/cmake/3.30.5/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
72
72
  .PHONY : edit_cache
73
73
 
74
74
  # Special rule for the target edit_cache
@@ -78,7 +78,7 @@ edit_cache/fast: edit_cache
78
78
  # Special rule for the target rebuild_cache
79
79
  rebuild_cache:
80
80
  @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..."
81
- /usr/local/Cellar/cmake/3.30.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
81
+ /usr/local/Cellar/cmake/3.30.5/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
82
82
  .PHONY : rebuild_cache
83
83
 
84
84
  # Special rule for the target rebuild_cache
@@ -97,37 +97,37 @@ list_install_components/fast: list_install_components
97
97
  # Special rule for the target install
98
98
  install: preinstall
99
99
  @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
100
- /usr/local/Cellar/cmake/3.30.4/bin/cmake -P cmake_install.cmake
100
+ /usr/local/Cellar/cmake/3.30.5/bin/cmake -P cmake_install.cmake
101
101
  .PHONY : install
102
102
 
103
103
  # Special rule for the target install
104
104
  install/fast: preinstall/fast
105
105
  @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
106
- /usr/local/Cellar/cmake/3.30.4/bin/cmake -P cmake_install.cmake
106
+ /usr/local/Cellar/cmake/3.30.5/bin/cmake -P cmake_install.cmake
107
107
  .PHONY : install/fast
108
108
 
109
109
  # Special rule for the target install/local
110
110
  install/local: preinstall
111
111
  @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
112
- /usr/local/Cellar/cmake/3.30.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
112
+ /usr/local/Cellar/cmake/3.30.5/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
113
113
  .PHONY : install/local
114
114
 
115
115
  # Special rule for the target install/local
116
116
  install/local/fast: preinstall/fast
117
117
  @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
118
- /usr/local/Cellar/cmake/3.30.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
118
+ /usr/local/Cellar/cmake/3.30.5/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
119
119
  .PHONY : install/local/fast
120
120
 
121
121
  # Special rule for the target install/strip
122
122
  install/strip: preinstall
123
123
  @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
124
- /usr/local/Cellar/cmake/3.30.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
124
+ /usr/local/Cellar/cmake/3.30.5/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
125
125
  .PHONY : install/strip
126
126
 
127
127
  # Special rule for the target install/strip
128
128
  install/strip/fast: preinstall/fast
129
129
  @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
130
- /usr/local/Cellar/cmake/3.30.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
130
+ /usr/local/Cellar/cmake/3.30.5/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
131
131
  .PHONY : install/strip/fast
132
132
 
133
133
  # The main all target
@@ -142,8 +142,8 @@ is_qbdd = "isBinaryDecisionTree"
142
142
  is_gpu = "isOpenCL"
143
143
  # 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)
144
144
  is_host_pointer = "isHostPointer"
145
- # Use noisy simulation? (Default is "false"; depolarizing noise intensity can be controlled by "QRACK_GATE_DEPOLARIZATION" environment variable)
146
- is_noisy = "isNoisy"
145
+ # Noise parameter. (Default is "0"; depolarizing noise intensity can also be controlled by "QRACK_GATE_DEPOLARIZATION" environment variable)
146
+ noise = "noise"
147
147
 
148
148
  # In the above example, a dictionary will be constructed at run time.
149
149
  # The dictionary will contain the string key "option_key" and its value
@@ -16,4 +16,4 @@
16
16
  Version number (major.minor.patch[-label])
17
17
  """
18
18
 
19
- __version__ = "0.9.8"
19
+ __version__ = "0.10.1"
Binary file
@@ -406,9 +406,10 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
406
406
  keyMap["'is_qbdd'"] = 5;
407
407
  keyMap["'is_gpu'"] = 6;
408
408
  keyMap["'is_host_pointer'"] =7;
409
- keyMap["'is_noisy'"] = 8;
409
+ keyMap["'noise'"] = 8;
410
410
 
411
411
  size_t pos;
412
+ Qrack::real1_f noiseParam = 0;
412
413
  while ((pos = kwargs.find(":")) != std::string::npos) {
413
414
  std::string key = trim(kwargs.substr(0, pos));
414
415
  kwargs.erase(0, pos + 1U);
@@ -439,7 +440,8 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
439
440
  hp = val;
440
441
  break;
441
442
  case 8:
442
- nw = val;
443
+ noiseParam = std::stof(value);
444
+ nw = noiseParam > ZERO_R1;
443
445
  break;
444
446
  default:
445
447
  break;
@@ -447,6 +449,9 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
447
449
  }
448
450
 
449
451
  qsim = QSIM_CONFIG(0U);
452
+ if (noiseParam > ZERO_R1) {
453
+ qsim->SetNoiseParameter(noiseParam);
454
+ }
450
455
  }
451
456
 
452
457
  QrackDevice &operator=(const QuantumDevice &) = delete;
@@ -158,8 +158,8 @@ class QrackDevice(QubitDevice):
158
158
  isOpenCL = True
159
159
  # 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)
160
160
  isHostPointer = False
161
- # Use noisy simulation? (Default is "false"; depolarizing noise intensity can be controlled by "QRACK_GATE_DEPOLARIZATION" environment variable)
162
- isNoisy = False
161
+ # Noise parameter. (Default is "0"; depolarizing noise intensity can also be controlled by "QRACK_GATE_DEPOLARIZATION" environment variable)
162
+ noise = 0
163
163
 
164
164
  @staticmethod
165
165
  def get_c_interface():
@@ -187,8 +187,8 @@ class QrackDevice(QubitDevice):
187
187
  self.isOpenCL = options['isOpenCL']
188
188
  if 'isHostPointer' in options:
189
189
  self.isHostPointer = options['isHostPointer']
190
- if 'isNoisy' in options:
191
- self.isNoisy = options['isNoisy']
190
+ if 'noise' in options:
191
+ self.noise = options['noise']
192
192
  super().__init__(wires=wires, shots=shots)
193
193
  self._state = QrackSimulator(
194
194
  self.num_wires,
@@ -198,7 +198,7 @@ class QrackDevice(QubitDevice):
198
198
  isBinaryDecisionTree=self.isBinaryDecisionTree,
199
199
  isOpenCL=self.isOpenCL,
200
200
  isHostPointer=self.isHostPointer,
201
- isNoisy=self.isNoisy
201
+ noise = self.noise
202
202
  )
203
203
 
204
204
  def _reverse_state(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pennylane-qrack
3
- Version: 0.9.8
3
+ Version: 0.10.1
4
4
  Summary: PennyLane plugin for Qrack.
5
5
  Home-page: http://github.com/vm6502q
6
6
  Maintainer: vm6502q
@@ -0,0 +1,15 @@
1
+ pennylane_qrack/CMakeCache.txt,sha256=ikR3Vw_axsyQXHQXIhKiWiprMn0WArSSK188F_cHmvM,16093
2
+ pennylane_qrack/Makefile,sha256=WgHeF4eQjsjX_OjNyuhzcuo1-YJMsVX9j82iABayQAQ,7789
3
+ pennylane_qrack/QrackDeviceConfig.toml,sha256=t_IQVSFR-GJ3VuqpQqm4M5gA3TVL4-y0qPq-f0FJwac,6219
4
+ pennylane_qrack/__init__.py,sha256=_g4NKu07_pXqxvQaxjdAPe769S5tWwYjqyHi3z7YKHc,673
5
+ pennylane_qrack/_version.py,sha256=wPzzxyCbgXdn3mdSkz3Gkpepi4x5Ik58UXi07BhMazA,692
6
+ pennylane_qrack/cmake_install.cmake,sha256=V_v3t0o7_0wjq0Fxyg_StmG6P2KihbZa6ZWxI1ghWiQ,3088
7
+ pennylane_qrack/libqrack_device.dylib,sha256=BqhS4snLfnK7e1biWCoYDsYxLsJiWBCgk_7fnbGx3Go,3304928
8
+ pennylane_qrack/qrack_device.cpp,sha256=eRoowI7n9XV63aoZEaDjWmK1NC4JQ1GBeL2uggDttG0,36846
9
+ pennylane_qrack/qrack_device.py,sha256=tN_RPJU8m4yr7AMfJQb6apRNxCKyX1XCIxpVwFo-2jw,26001
10
+ pennylane_qrack-0.10.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
+ pennylane_qrack-0.10.1.dist-info/METADATA,sha256=qGF858MmBaqNLGPk68IDYcAPF3bBHtEGL7kpmCBJrOQ,5525
12
+ pennylane_qrack-0.10.1.dist-info/WHEEL,sha256=ltYqT0Jm_rFIBsQjbiCsK9NtBJ_2JztBV_lMGOlT0qc,106
13
+ pennylane_qrack-0.10.1.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
14
+ pennylane_qrack-0.10.1.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
15
+ pennylane_qrack-0.10.1.dist-info/RECORD,,
@@ -1,15 +0,0 @@
1
- pennylane_qrack/CMakeCache.txt,sha256=jH94atOm9KKrhioaSMNOIMDqN0LpNGCP85XRP5qDOls,16093
2
- pennylane_qrack/Makefile,sha256=Gr9hp-mPQ7eAAyRMWhdR8zwRg53rZ4ngz9KMFi77M2M,7789
3
- pennylane_qrack/QrackDeviceConfig.toml,sha256=o2qw-X6LLaePYTqbCx86yZtMMyKLsFCzg-SGgwoTLP4,6228
4
- pennylane_qrack/__init__.py,sha256=_g4NKu07_pXqxvQaxjdAPe769S5tWwYjqyHi3z7YKHc,673
5
- pennylane_qrack/_version.py,sha256=4iU_ZggWwovxyrXiQao-Bx9V2NbUhukN1KesZAaTSJs,691
6
- pennylane_qrack/cmake_install.cmake,sha256=V_v3t0o7_0wjq0Fxyg_StmG6P2KihbZa6ZWxI1ghWiQ,3088
7
- pennylane_qrack/libqrack_device.dylib,sha256=EFUQTM64YhTmKe95Ml05QaEtwnj7NhNLacWKvGE3kMk,3302056
8
- pennylane_qrack/qrack_device.cpp,sha256=1y3FDwlEksbwktPUHXaNP6UXUa__TtNnzy3tjhj2Hh0,36647
9
- pennylane_qrack/qrack_device.py,sha256=4NAQpJc77DN7bqwU5-dOcR1iMHlY_YCzV6kmvAaZBRg,26019
10
- pennylane_qrack-0.9.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
- pennylane_qrack-0.9.8.dist-info/METADATA,sha256=563t7X89sOd50fDO93IGJDvl6jXrWkv2uy39O6JMk68,5524
12
- pennylane_qrack-0.9.8.dist-info/WHEEL,sha256=ltYqT0Jm_rFIBsQjbiCsK9NtBJ_2JztBV_lMGOlT0qc,106
13
- pennylane_qrack-0.9.8.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
14
- pennylane_qrack-0.9.8.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
15
- pennylane_qrack-0.9.8.dist-info/RECORD,,