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

Function assert_receiverCanFitSendersEntireState

quest/src/core/errors.cpp:228–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void assert_receiverCanFitSendersEntireState(Qureg receiver, Qureg sender) {
229
230 if (receiver.numAmpsPerNode < sender.numAmps)
231 raiseInternalError("A distributed function attempted to broadcast a Qureg's entire state into another Qureg's buffer, which could not fit all global amps.");
232}
233
234void assert_receiverCanFitSendersEntireElems(Qureg receiver, FullStateDiagMatr sender) {
235

Callers 1

Calls 1

raiseInternalErrorFunction · 0.85

Tested by

no test coverage detected