| 622 | { |
| 623 | |
| 624 | inline const gate<1> hadamard( |
| 625 | ) |
| 626 | { |
| 627 | gate<1> h; |
| 628 | h(0,0) = std::sqrt(1/2.0); |
| 629 | h(0,1) = std::sqrt(1/2.0); |
| 630 | h(1,0) = std::sqrt(1/2.0); |
| 631 | h(1,1) = -std::sqrt(1/2.0); |
| 632 | return h; |
| 633 | } |
| 634 | |
| 635 | // ------------------------------------------------------------------------------------ |
| 636 |
no test coverage detected