| 210 | static const long dims = gate_traits<w_gate>::dims; |
| 211 | |
| 212 | const qc_scalar_type operator() (long r, long c) const |
| 213 | { |
| 214 | qc_scalar_type res = 2.0/dims; |
| 215 | if (r != c) |
| 216 | return res; |
| 217 | else |
| 218 | return res - 1.0; |
| 219 | } |
| 220 | |
| 221 | template <typename exp> |
| 222 | qc_scalar_type compute_state_element ( |
nothing calls this directly
no outgoing calls
no test coverage detected