-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
31 lines (23 loc) · 995 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import quantum_teleportation.quantum_data_teleporter as qc
def main():
# file_path = "data/text.txt" # Path to the text file
# quantum_comm = qc.QuantumDataTeleporter(file_path=file_path, shots=2, noise_model=True)
# received_data, is_data_match = quantum_comm.run_simulation()
# print(f"Sent Data == Received Data: {is_data_match}")
text = "a"
quantum_comm = qc.QuantumDataTeleporter(
# image_path="data/images/2.png",
# file_path="data/files/text.txt",
text_to_send=text,
shots=1, # -1 seems to be broken for some reason
noise_model=True,
logs=True,
compression="adaptive", # compression can be "brotli" or "adaptive" or False
output_path="output",
)
received_data, is_data_match = quantum_comm.run_simulation()
print(f"Sent Data = {text}")
print(f"Received Data = {received_data}")
print(f"Sent Data == Received Data: {is_data_match}")
if __name__ == "__main__":
main()