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

Method swap

dlib/quantum_computing/quantum_computing.h:231–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 matrix<qc_scalar_type,0,1>& state_vector() { return state; }
230
231 void swap (
232 quantum_register& item
233 )
234 {
235 exchange(num_bits_in_register, item.num_bits_in_register);
236 state.swap(item.state);
237 }
238
239 private:
240

Callers 11

swapFunction · 0.45
swapFunction · 0.45
swapFunction · 0.45
swapFunction · 0.45
swapFunction · 0.45
swapFunction · 0.45
swapMethod · 0.45
sort_this_queueMethod · 0.45
swapFunction · 0.45
swapFunction · 0.45

Calls 1

exchangeFunction · 0.85

Tested by

no test coverage detected