MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / assert_receiverCanFitSendersEntireElems

Function assert_receiverCanFitSendersEntireElems

quest/src/core/errors.cpp:234–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void assert_receiverCanFitSendersEntireElems(Qureg receiver, FullStateDiagMatr sender) {
235
236 if (receiver.numAmpsPerNode < sender.numElems)
237 raiseInternalError("A distributed function attempted to broadcast the entirety of a FullStateDiagMatr's elements into a Qureg's buffer, which is too small to contain all global elements.");
238}
239
240
241

Callers 1

Calls 1

raiseInternalErrorFunction · 0.85

Tested by

no test coverage detected