qrisp.quantum_network.QuantumNetworkClient.get_overall_qc#

QuantumNetworkClient.get_overall_qc()[source]#

Retrieves the QuantumCircuit of all operations that happened in the network so far.

Returns
QuantumCircuit

The QuantumCircuit containing all operations that happened in this QuantumNetwork.

Examples

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

>>> print(alice_client.get_overall_qc())
              ░ ┌───┐      ░ ┌─┐ ░
qb_34@alice: ─░─┤ H ├──■───░─┤M├─░────
              ░ └───┘┌─┴─┐ ░ └╥┘ ░ ┌─┐
qb_35@alice: ─░──────┤ X ├─░──╫──░─┤M├
              ░      └───┘ ░  ║  ░ └╥┘
   cb_bob_0: ═════════════════╩═════╬═
                                    ║
 cb_alice_0: ═══════════════════════╩═