MCPcopy Create free account
hub / github.com/davisking/dlib / operator()

Method operator()

examples/quantum_computing_ex.cpp:212–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected