documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Introduce fractional gates

Open kaelynj opened this issue 1 year ago • 2 comments

Closes #1526 (and will likely close #1471 @lerongil).

FYI @nbronn here's the draft of the fractional gates page.

kaelynj avatar Jul 18 '24 16:07 kaelynj

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Thanks for contributing to Qiskit documentation!

Before your PR can be merged, it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. Thanks! 🙌

qiskit-bot avatar Jul 18 '24 16:07 qiskit-bot

In addition to the comments I added from ReviewNB, we also need a section on when NOT to use fractional gates. In particular, we currently do not support using fractional gates with dynamic circuits or with any error mitigation features of the Qiskit Runtime. Furthermore, the Qiskit transpiler has limited capability to use rzz in its optimization passes. So, this is mostly relevant for users hand-crafting circuits and using the Sampler.

blakejohnson avatar Oct 28 '24 17:10 blakejohnson

@abbycross Can you also mention that the "error" value of rx (rzz) gate reported in Target is a copy of non-fractional counterpart, i.e. sx (cz) gate? This is worth noting because user may want to choose optimal decomposition based on net error, but this strategy doesn't work currently because the actual error of fractional gates are not reported.

Since gate time of fractional/non-fractional gates are the same, we can expect their error values are also almost comparable when dominant source of error is relaxation, but they could differ because of the difference in calibration protocol.

nkanazawa1989 avatar Nov 05 '24 15:11 nkanazawa1989

@abbycross Can you also mention that the "error" value of rx (rzz) gate reported in Target is a copy of non-fractional counterpart, i.e. sx (cz) gate? This is worth noting because user may want to choose optimal decomposition based on net error, but this strategy doesn't work currently because the actual error of fractional gates are not reported.

Since gate time of fractional/non-fractional gates are the same, we can expect their error values are also almost comparable when dominant source of error is relaxation, but they could differ because of the difference in calibration protocol.

Just added this as a note in the first section of the page. @blakejohnson and @javabster I believe this page should be ready to go now that fractional gates are live.

kaelynj avatar Nov 06 '24 20:11 kaelynj

@kaelynj Can you please check again my comments? Some of them were not addressed. Thanks.

yaelbh avatar Nov 07 '24 06:11 yaelbh