Skip to content

Commit be5de0f

Browse files
committed
add comment on zrot unavailability
1 parent 1953bac commit be5de0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gates/orbital_rotation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ pub fn apply_givens_rotation_in_place(
4646
match row_i.as_slice_mut() {
4747
Some(row_i) => match row_j.as_slice_mut() {
4848
Some(row_j) => unsafe {
49+
// Use zdrot and zscal because zrot is not currently available
50+
// See https://github.com/qiskit-community/ffsim/issues/28
4951
zscal(dim_b, phase_conj, row_i, 1);
5052
zdrot(dim_b, row_i, 1, row_j, 1, c, s_abs);
5153
zscal(dim_b, phase, row_i, 1);

0 commit comments

Comments
 (0)