-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support sqrt(iSWAP) and Sycamore gates in Floquet calibration #4248
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
Conversation
Hi @mrwojtek! This PR is now ready to review. I modified a test as we discussed, and it was failing on assertion in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this all seem fine!
You're right, the _merge_into_calibrations
was not designed to support mixed calibrations before and your solution is good I think.
@balopat, can we please merge this? |
…mlib#4248) Goal of this PR is that circuits having any of these 2-qubit gates (sqrt(iSWAP), Sycamore) can be calibrated on real hardware. In quantumlib#4164 I ensured that any FSim-compatible gate can be handled on compensation phase. But on characterization step we can support only these 2 gates, because only they are implemented in hardware (so far). For that: * Added method `try_convert_syc_or_sqrt_iswap_to_fsim` which is restriction of `try_convert_gate_to_fsim` on gates supported by hardware. * Used that method in `workflow.py` as gate translator everywhere where `try_convert_sqrt_iswap_to_fsim` was used. * Fixed a bug in `_merge_into_calibrations` so if there are calibrations for 2 different gates, it wouldn't fail with assertion error, but would append new calibration to the list of calibration. * Modified a test `test_run_zeta_chi_gamma_calibration_for_moments` so the circuit under test contains gates of 2 types.
Goal of this PR is that circuits having any of these 2-qubit gates (sqrt(iSWAP), Sycamore) can be calibrated on real hardware. In #4164 I ensured that any FSim-compatible gate can be handled on compensation phase. But on characterization step we can support only these 2 gates, because only they are implemented in hardware (so far).
For that:
try_convert_syc_or_sqrt_iswap_to_fsim
which is restriction oftry_convert_gate_to_fsim
on gates supported by hardware.workflow.py
as gate translator everywhere wheretry_convert_sqrt_iswap_to_fsim
was used._merge_into_calibrations
so if there are calibrations for 2 different gates, it wouldn't fail with assertion error, but would append new calibration to the list of calibration.test_run_zeta_chi_gamma_calibration_for_moments
so the circuit under test contains gates of 2 types.