Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce crosstalk_matrix as Qubit attribute #735

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

andrea-pasquale
Copy link
Contributor

Required by qiboteam/qibocal#684.

When it will get merged I will also update accordingly qibolab_platforms.

Checklist:

  • Reviewers confirm new code works as expected.
  • Tests are passing.
  • Coverage does not decrease.
  • Documentation is updated.

@andrea-pasquale andrea-pasquale added enhancement New feature or request calibration labels Jan 5, 2024
@andrea-pasquale andrea-pasquale self-assigned this Jan 5, 2024
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (402f550) 63.03% compared to head (493526e) 63.02%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #735      +/-   ##
==========================================
- Coverage   63.03%   63.02%   -0.02%     
==========================================
  Files          48       48              
  Lines        6623     6620       -3     
==========================================
- Hits         4175     4172       -3     
  Misses       2448     2448              
Flag Coverage Δ
unittests 63.02% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alecandido
Copy link
Member

Are you sure it should go under each single qubit? It should be a matrix in the first place, rotating from all qubits (a weight for each one) to all qubits.

Wouldn't it be more appropriate to put it under a qubits container?
It could be the QubitMap, but it's potentially better to keep that simple (id: Qubit) and hold this information directly in the Platform.

@andrea-pasquale
Copy link
Contributor Author

Are you sure it should go under each single qubit? It should be a matrix in the first place, rotating from all qubits (a weight for each one) to all qubits.

Wouldn't it be more appropriate to put it under a qubits container? It could be the QubitMap, but it's potentially better to keep that simple (id: Qubit) and hold this information directly in the Platform.

The current approach is the first thing that came to my mind. Indeed, it should a be a matrix. I am not really sure about putting it under a qubits container. Mainly because I don't want to overcomplicate the runcard if necessary. A possible solution could be to put a row of the matrix under each qubit (similarly to what I am doing with the only difference that instead of storing it as a dict we store directly as an array).

Also regardless of how we store it, we can add a method to the platform which generates directly the crosstalk matrix.

@alecandido
Copy link
Member

Also regardless of how we store it, we can add a method to the platform which generates directly the crosstalk matrix.

But it's going to be used altogether anyhow, and it makes connections between multiple qubits. If there is going to be a method in the platform, we could well put the whole attribute there.

@scarrazza scarrazza added this to the Qibolab 0.1.5 milestone Jan 9, 2024
@andrea-pasquale andrea-pasquale marked this pull request as ready for review January 17, 2024 09:31
Copy link
Member

@stavros11 stavros11 left a comment

Choose a reason for hiding this comment

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

Following the meeting, we decided to merge this now and refactor later (if needed) when implementing the mechanism for flux corrections.

@andrea-pasquale andrea-pasquale merged commit ebe6054 into main Jan 22, 2024
25 checks passed
@andrea-pasquale andrea-pasquale deleted the update_flux_parameters branch January 22, 2024 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
calibration enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants