Commit f0eec9e
authored
Based on the cuStateVecEx documentation,
`custatevecExStateVectorSetState` respects the current wire ordering of
the state vector. Therefore, calling `to_normal_order()` to physically
rearrange the state is not logically required after initialization from
a host buffer, and it might even be undesirable if the caller intends to
keep a specific permutation for performance.
Removed the `to_normal_order()` calls and associated TODO comments from
both `Copy` overloads in `lib/vectorspace_custatevecex.h`.
1 parent 145beff commit f0eec9e
1 file changed
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | 549 | | |
553 | 550 | | |
554 | 551 | | |
| |||
576 | 573 | | |
577 | 574 | | |
578 | 575 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | 576 | | |
583 | 577 | | |
584 | 578 | | |
| |||
0 commit comments