BackendClient#
- class BackendClient(api_endpoint, port=None, token='')[source]#
This object allows connecting to Qunicorn 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(api_endpoint = "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) {'00': 510, '11': 490}
Methods#
|
|
|