Skip to content

Feat/add qubit serialization to graphs - #164

Merged
Elad-Zaharan merged 9 commits into
mainfrom
feat/add_qubit_serialization_to_graphs
Jan 1, 2026
Merged

Feat/add qubit serialization to graphs#164
Elad-Zaharan merged 9 commits into
mainfrom
feat/add_qubit_serialization_to_graphs

Conversation

@Elad-Zaharan

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread qualibrate/qualibration_node.py Outdated
self._machine_metadata = None

# Only return metadata if machine exists and has qubits attribute
if not hasattr(self._machine, "qubits"):

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check this necessity

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we check it in previous method so seems not necessary in case we dont mind that user change his machine after the previous method

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what it does is, if we dont have the right attributes in machine, return None instead of {}, so in the eend we dont have metadata underqubits, we can either remove it or remain, depends on what we decide

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can move it into the previous method and in that edge case return None but not a must

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now, i removed it

Comment thread qualibrate/qualibration_node.py Outdated
Comment thread qualibrate/qualibration_graph.py Outdated
Comment thread qualibrate/qualibration_graph.py Outdated
Comment thread qualibrate/utils/graph_building.py Outdated
@Elad-Zaharan
Elad-Zaharan merged commit 160524c into main Jan 1, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants