pennylane-qrack 0.8.7__py3-none-macosx_13_0_x86_64.whl → 0.9.0__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.

@@ -16,4 +16,4 @@
16
16
  Version number (major.minor.patch[-label])
17
17
  """
18
18
 
19
- __version__ = "0.8.7"
19
+ __version__ = "0.9.0"
Binary file
@@ -457,6 +457,7 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
457
457
  auto AllocateQubit() -> QubitIdType override {
458
458
  const QubitIdType label = qsim->GetQubitCount();
459
459
  qsim->Allocate(1U);
460
+ qubit_map[label] = (bitLenInt)label;
460
461
  return label;
461
462
  }
462
463
  auto AllocateQubits(size_t num_qubits) -> std::vector<QubitIdType> override {
@@ -543,7 +544,7 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
543
544
  void PrintState() override
544
545
  {
545
546
  const size_t numQubits = qsim->GetQubitCount();
546
- const size_t maxQPower = (size_t)((BIG_INTEGER_WORD)qsim->GetMaxQPower());
547
+ const size_t maxQPower = (size_t)((uint64_t)qsim->GetMaxQPower());
547
548
  const size_t maxLcv = maxQPower - 1U;
548
549
  size_t idx = 0U;
549
550
  std::cout << "*** State-Vector of Size " << maxQPower << " ***" << std::endl;
@@ -642,7 +643,7 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
642
643
  }
643
644
  void State(DataView<std::complex<double>, 1>& sv) override
644
645
  {
645
- RT_FAIL_IF(sv.size() != (size_t)((BIG_INTEGER_WORD)qsim->GetMaxQPower()), "Invalid size for the pre-allocated state vector");
646
+ RT_FAIL_IF(sv.size() != (size_t)((uint64_t)qsim->GetMaxQPower()), "Invalid size for the pre-allocated state vector");
646
647
  reverseWires();
647
648
  #if FPPOW == 6
648
649
  qsim->GetQuantumState(&(*(sv.begin())));
@@ -655,7 +656,7 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
655
656
  }
656
657
  void Probs(DataView<double, 1>& p) override
657
658
  {
658
- RT_FAIL_IF(p.size() != (size_t)((BIG_INTEGER_WORD)qsim->GetMaxQPower()), "Invalid size for the pre-allocated probabilities vector");
659
+ RT_FAIL_IF(p.size() != (size_t)((uint64_t)qsim->GetMaxQPower()), "Invalid size for the pre-allocated probabilities vector");
659
660
  reverseWires();
660
661
  #if FPPOW == 6
661
662
  qsim->GetProbs(&(*(p.begin())));
@@ -668,7 +669,7 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
668
669
  }
669
670
  void PartialProbs(DataView<double, 1> &p, const std::vector<QubitIdType> &wires) override
670
671
  {
671
- RT_FAIL_IF((size_t)((BIG_INTEGER_WORD)Qrack::pow2(wires.size())) != p.size(), "Invalid size for the pre-allocated probabilities vector");
672
+ RT_FAIL_IF((size_t)((uint64_t)Qrack::pow2(wires.size())) != p.size(), "Invalid size for the pre-allocated probabilities vector");
672
673
  auto &&dev_wires = getDeviceWires(wires);
673
674
  std::reverse(dev_wires.begin(), dev_wires.end());
674
675
  #if FPPOW == 6
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pennylane-qrack
3
- Version: 0.8.7
3
+ Version: 0.9.0
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=MxnmObo38eSdV_LKNq-BMjfk_lChD5RFwDyXnxkx1wk,16093
2
+ pennylane_qrack/Makefile,sha256=YvmYsE8Vzk74J8BZnSXvFLeuYf4544QW3GId64YJYo8,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=1RkAvWn5K1NrmZT5paLz8OVx_UlhYc1CxUr4fVuw0I8,691
6
+ pennylane_qrack/cmake_install.cmake,sha256=V_v3t0o7_0wjq0Fxyg_StmG6P2KihbZa6ZWxI1ghWiQ,3088
7
+ pennylane_qrack/libqrack_device.dylib,sha256=v6j5MveUOmZTHM9_KMU42QN54OqTZpqYjCkNPIULIcQ,3277320
8
+ pennylane_qrack/qrack_device.cpp,sha256=QvbMcieq4HAoF2GbN4mrckMhS4XU4TZRijJslafW8nU,35963
9
+ pennylane_qrack/qrack_device.py,sha256=EO-qaf4jE0WWY8hfnewebETxUQEMJsi6bNASmW2mdUY,23670
10
+ pennylane_qrack-0.9.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
+ pennylane_qrack-0.9.0.dist-info/METADATA,sha256=MHOC_nZZzTwbEi78U1h949j6rpMAZ1ABMboXSHd9Gk4,5524
12
+ pennylane_qrack-0.9.0.dist-info/WHEEL,sha256=17JNG9Go9b5nfL0Yy6ycHL5ZPYHSVARs_TEWZQVGhpg,106
13
+ pennylane_qrack-0.9.0.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
14
+ pennylane_qrack-0.9.0.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
15
+ pennylane_qrack-0.9.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.0.0)
2
+ Generator: setuptools (74.1.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-macosx_13_0_x86_64
5
5
 
@@ -1,15 +0,0 @@
1
- pennylane_qrack/CMakeCache.txt,sha256=MxnmObo38eSdV_LKNq-BMjfk_lChD5RFwDyXnxkx1wk,16093
2
- pennylane_qrack/Makefile,sha256=YvmYsE8Vzk74J8BZnSXvFLeuYf4544QW3GId64YJYo8,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=92q9QLGIvOPfzrKYimb5rKQVTl-RhT97vdYVCzl0cO4,691
6
- pennylane_qrack/cmake_install.cmake,sha256=V_v3t0o7_0wjq0Fxyg_StmG6P2KihbZa6ZWxI1ghWiQ,3088
7
- pennylane_qrack/libqrack_device.dylib,sha256=W90FKD8rcOZmxgxGUNvpJbbBurzWnMdu9f-CFTmioDw,4157888
8
- pennylane_qrack/qrack_device.cpp,sha256=S5FYE36vjKRoocoOLDDwm19Td_KinvcYQmorCmDVgFc,35950
9
- pennylane_qrack/qrack_device.py,sha256=EO-qaf4jE0WWY8hfnewebETxUQEMJsi6bNASmW2mdUY,23670
10
- pennylane_qrack-0.8.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
- pennylane_qrack-0.8.7.dist-info/METADATA,sha256=HMbXZ6Mm14teM7oBKVfbFTHYhuk24nTad5pwikk43i8,5524
12
- pennylane_qrack-0.8.7.dist-info/WHEEL,sha256=60K7tYdw_epTk1Owqrb1rl7YiJk3d5C8Cz_Kl9_euRM,106
13
- pennylane_qrack-0.8.7.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
14
- pennylane_qrack-0.8.7.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
15
- pennylane_qrack-0.8.7.dist-info/RECORD,,