MCPcopy Create free account
hub / github.com/davisking/dlib / mat

Method mat

dlib/quantum_computing/quantum_computing.h:263–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261 const qc_scalar_type operator() (long r, long c) const { return exp(r,c); }
262
263 const matrix<qc_scalar_type> mat (
264 ) const
265 {
266 matrix<qc_scalar_type,dims,dims> m;
267 for (long r = 0; r < m.nr(); ++r)
268 {
269 for (long c = 0; c < m.nc(); ++c)
270 {
271 m(r,c) = exp(r,c);
272 }
273 }
274 return m;
275 }
276
277 void apply_gate_to (quantum_register& reg) const
278 {

Callers

nothing calls this directly

Calls 3

expFunction · 0.85
nrMethod · 0.45
ncMethod · 0.45

Tested by

no test coverage detected