BackendClient#
- class BackendClient(socket_ip, port=None)[source]#
This object allows connecting to Qrisp backend servers.
- Parameters
- socket_ipstring
The IP address of the socket of the target server.
- portint
The port on which the server is listening.
Examples
We assume that the example from BackendServer has been executed in the same console.
>>> from qrisp.interface import BackendClient >>> example_backend = BackendClient(socket_ip = "127.0.0.1", port = 8080) >>> from qrisp import QuantumCircuit >>> qc = QuantumCircuit(2) >>> qc.h(0) >>> qc.cx(0,1) >>> qc.measure(qc.qubits) >>> example_backend.run(qc, shots = 1000, token = "lorem ipsum") lorem ipsum {'0 0': 464, '1 1': 536}
Methods#
|
|
|
Executes the |
Executes the |