qrisp.quantum_network.QuantumNetworkSession.update#

QuantumNetworkSession.update()[source]#

This updates the inbox attribute and returns the received QuantumVariables.

Returns
received_qvslist[QuantumVariable]

The QuantumVariables which have been received since the last update.

Examples

We assume that the commands from the example of the send_qv method have been executed.

>>> inbox = bob_session.update()
>>> print(inbox[0])
{3.0: 1.0}