We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a9cffd commit 4e4fa9bCopy full SHA for 4e4fa9b
src/gates/orbital_rotation.rs
@@ -56,8 +56,8 @@ pub fn apply_givens_rotation_in_place(
56
let slice1_slice = slice1.as_slice().unwrap();
57
let slice2_slice = slice2.as_slice().unwrap();
58
59
- // Sequential execution for single thread
60
- if n_threads == 1 {
+ // Sequential execution for single thread or small slice
+ if n_threads == 1 || n_pairs < 128 {
61
let vec_ptr = vec.as_mut_ptr();
62
for (&i, &j) in slice1_slice.iter().zip(slice2_slice) {
63
unsafe {
0 commit comments