PyQrackIsing 8.14.0__tar.gz → 8.14.1__tar.gz

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.
Files changed (28) hide show
  1. {pyqrackising-8.14.0/pyqrackising.egg-info → pyqrackising-8.14.1}/PKG-INFO +1 -1
  2. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyproject.toml +1 -1
  3. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/kernels.cl +9 -9
  4. {pyqrackising-8.14.0 → pyqrackising-8.14.1/pyqrackising.egg-info}/PKG-INFO +1 -1
  5. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/setup.py +1 -1
  6. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/LICENSE.md +0 -0
  7. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/MANIFEST.in +0 -0
  8. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/README.md +0 -0
  9. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/__init__.py +0 -0
  10. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/convert_tensor_network_to_tsp.py +0 -0
  11. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/generate_tfim_samples.py +0 -0
  12. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/maxcut_tfim.py +0 -0
  13. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/maxcut_tfim_sparse.py +0 -0
  14. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/maxcut_tfim_streaming.py +0 -0
  15. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/maxcut_tfim_util.py +0 -0
  16. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/spin_glass_solver.py +0 -0
  17. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/spin_glass_solver_sparse.py +0 -0
  18. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/spin_glass_solver_streaming.py +0 -0
  19. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/spin_glass_solver_util.py +0 -0
  20. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/tfim_magnetization.py +0 -0
  21. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/tfim_square_magnetization.py +0 -0
  22. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/tsp.py +0 -0
  23. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising/tsp_maxcut.py +0 -0
  24. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising.egg-info/SOURCES.txt +0 -0
  25. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising.egg-info/dependency_links.txt +0 -0
  26. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising.egg-info/not-zip-safe +0 -0
  27. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/pyqrackising.egg-info/top_level.txt +0 -0
  28. {pyqrackising-8.14.0 → pyqrackising-8.14.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 8.14.0
3
+ Version: 8.14.1
4
4
  Summary: Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)
5
5
  Home-page: https://github.com/vm6502q/PyQrackIsing
6
6
  Author: Dan Strano
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
10
10
 
11
11
  [project]
12
12
  name = "pyqrackising"
13
- version = "8.14.0"
13
+ version = "8.14.1"
14
14
  requires-python = ">=3.8"
15
15
  description = "Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)"
16
16
  readme = {file = "README.txt", content-type = "text/markdown"}
@@ -438,11 +438,11 @@ __kernel void bootstrap_sparse_segmented(
438
438
  }
439
439
  }
440
440
 
441
- inline bool get_bit(__constant uint* theta, const size_t u) {
441
+ inline bool get_bit(__global uint* theta, const size_t u) {
442
442
  return (theta[u >> 5U] >> (u & 31U)) & 1U;
443
443
  }
444
444
 
445
- real1 cut_worker(__constant uint* theta, __global const real1* G_m, const int n, const bool is_spin_glass) {
445
+ real1 cut_worker(__global uint* theta, __global const real1* G_m, const int n, const bool is_spin_glass) {
446
446
  real1 energy = ZERO_R1;
447
447
  const size_t n_st = (size_t)n;
448
448
  for (int u = 0; u < n; ++u) {
@@ -464,7 +464,7 @@ real1 cut_worker(__constant uint* theta, __global const real1* G_m, const int n,
464
464
 
465
465
  __kernel void calculate_cut(
466
466
  __global const real1* G_m,
467
- __constant uint* theta,
467
+ __global uint* theta,
468
468
  __constant int* args, // args[0] = n, args[1] = k
469
469
  __global real1* max_energy_ptr, // output: per-group min energy
470
470
  __global int* max_index_ptr, // output: per-group best index (i)
@@ -515,7 +515,7 @@ __kernel void calculate_cut(
515
515
  }
516
516
  }
517
517
 
518
- real1 cut_worker_sparse(__constant uint* theta, __global const real1* G_data, __global const uint* G_rows, __global const uint* G_cols, const int n, const bool is_spin_glass) {
518
+ real1 cut_worker_sparse(__global uint* theta, __global const real1* G_data, __global const uint* G_rows, __global const uint* G_cols, const int n, const bool is_spin_glass) {
519
519
  real1 energy = ZERO_R1;
520
520
  for (int u = 0; u < n; ++u) {
521
521
  const bool u_bit = get_bit(theta, u);
@@ -539,7 +539,7 @@ __kernel void calculate_cut_sparse(
539
539
  __global const real1* G_data,
540
540
  __global const uint* G_rows,
541
541
  __global const uint* G_cols,
542
- __constant uint* theta,
542
+ __global uint* theta,
543
543
  __constant int* args, // args[0] = n, args[1] = k
544
544
  __global real1* max_energy_ptr, // output: per-group min energy
545
545
  __global int* max_index_ptr, // output: per-group best index (i)
@@ -590,7 +590,7 @@ __kernel void calculate_cut_sparse(
590
590
  }
591
591
 
592
592
  real1 cut_worker_segmented(
593
- __constant uint* theta,
593
+ __global uint* theta,
594
594
  __global const real1** G_m,
595
595
  const int n,
596
596
  const int segment_size,
@@ -623,7 +623,7 @@ __kernel void calculate_cut_segmented(
623
623
  __global const real1* G_m1,
624
624
  __global const real1* G_m2,
625
625
  __global const real1* G_m3,
626
- __constant uint* theta,
626
+ __global uint* theta,
627
627
  __constant int* args, // args[0]=n, args[1]=k, args[2]=combo_count, args[3]=segment_size
628
628
  __global real1* max_energy_ptr,
629
629
  __global int* max_index_ptr,
@@ -675,7 +675,7 @@ __kernel void calculate_cut_segmented(
675
675
  }
676
676
 
677
677
  real1 cut_worker_sparse_segmented(
678
- __constant uint* theta,
678
+ __global uint* theta,
679
679
  __global const real1** G_data,
680
680
  __global const uint* G_rows,
681
681
  __global const uint* G_cols,
@@ -712,7 +712,7 @@ __kernel void calculate_cut_sparse_segmented(
712
712
  __global const real1* G_data3,
713
713
  __global const uint* G_rows,
714
714
  __global const uint* G_cols,
715
- __constant uint* theta,
715
+ __global uint* theta,
716
716
  __constant int* args, // args[0] = n, args[1] = k, args[2] = combo_count, args[3] = segment_size
717
717
  __global real1* max_energy_ptr,
718
718
  __global int* max_index_ptr,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 8.14.0
3
+ Version: 8.14.1
4
4
  Summary: Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)
5
5
  Home-page: https://github.com/vm6502q/PyQrackIsing
6
6
  Author: Dan Strano
@@ -7,7 +7,7 @@ with open(README_PATH) as readme_file:
7
7
 
8
8
  setup(
9
9
  name='pyqrackising',
10
- version='8.14.0',
10
+ version='8.14.1',
11
11
  author='Dan Strano',
12
12
  author_email='stranoj@gmail.com',
13
13
  description='Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)',
File without changes
File without changes
File without changes
File without changes