> For the complete documentation index, see [llms.txt](https://devanshus-organization.gitbook.io/qubic-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devanshus-organization.gitbook.io/qubic-docs/long-term-monitor-data-management-a-user-manual.md).

# Long-Term Monitor Data Management: A User Manual

## Upload Experiment Data:&#x20;

Steps:&#x20;

1. We are using MongoDB here hence we are not creating the Branches here.&#x20;
2. In order to upload Experiment Data you have to upload a file that follows this format.&#x20;
   1. X4Y2.data.json -> chip\_name.data.json
   2. We will extract chip\_name from the file\_name.&#x20;
3. In, Jupyter NoteBook you can upload experiment data in 2 ways.&#x20;
   1. File Upload&#x20;
   2. Object Upload

{% tabs %}
{% tab title="Web Platform " %}

<figure><img src="https://1520191383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh5zvbKTgSzwf8hLhGaTM%2Fuploads%2F81F7E7wjKCVjunhtoTT0%2FScreenshot%202023-11-15%20at%204.00.34%E2%80%AFPM.png?alt=media&amp;token=37372d9b-418c-426b-a975-7cdcf3eb0746" alt=""><figcaption><p>Upload Experiment Data Button</p></figcaption></figure>
{% endtab %}

{% tab title="(File Upload)Jupyter NoteBook" %}
{% code title="File Upload" lineNumbers="true" fullWidth="true" %}

```python
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)
```

{% endcode %}
{% endtab %}

{% tab title="(Object Upload) Jupyter NoteBook" %}
{% code title="Object Upload" lineNumbers="true" %}

```python
# 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)
```

{% endcode %}
{% endtab %}
{% endtabs %}

## View Experiment Data: &#x20;

{% tabs %}
{% tab title="Web Platform" %}

<figure><img src="https://1520191383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh5zvbKTgSzwf8hLhGaTM%2Fuploads%2FPDqNHH5qdJojWlaKmz8Y%2FScreenshot%202023-11-15%20at%204.27.28%E2%80%AFPM.png?alt=media&amp;token=cff560dd-e737-4e57-9617-c02c9f763033" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="By Qubit No" %}
{% code lineNumbers="true" %}

```python
# 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)
```

{% endcode %}
{% endtab %}

{% tab title="By Property" %}
{% code title="" lineNumbers="true" %}

```python
# 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)
```

{% endcode %}
{% endtab %}
{% endtabs %}
