from qubicstorage import experiment
import json
file_path = 'X4Y2.data.json'
response = experiment.insertbyfile(file_path)
response_json_content = response.json()
response_json_string = json.dumps(response_json_content, indent=4)
print(response_json_string)
# Insert Qubit Data by JSON Object
from qubicstorage import experiment
import json
chip_name = "X4Y2"
json_data= {....}
response = experiment.insertbyobject(json_data,chip_name)
response_json_content = response.json()
response_json_string = json.dumps(response_json_content, indent=4)
print(response_json_string)
# Get Each Qubit Property Data With specified Chip
from qubicstorage import experiment
import json
qubit = "Q0"
chip_name = "X4Y2"
response = experiment.geteachqubitdata_chip(qubit,chip_name)
response_json_content = response.json()
response_json_string = json.dumps(response_json_content, indent=4)
print(response_json_string)
# Get All Qubits Data With specified Property
from qubicstorage import experiment
import json
#List of Currently available Properties:
# 1. fidelity
# 2. prep0read1
# 3. prep1read0
# 4. separation
# 5. t1
# 6. t2spinecho
# 7. t2ramsey
property = "fidelity"
chip_name = "X4Y2"
response = experiment.getallqubitdata_property(property,chip_name)
response_json_content = response.json()
response_json_string = json.dumps(response_json_content, indent=4)
print(response_json_string)