-
Notifications
You must be signed in to change notification settings - Fork 0
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
Test that gateset is preserved #84
Test that gateset is preserved #84
Conversation
So do we know what the performance is if we convert the |
Testing that out now- making a modified |
Yes, but that's using |
I see. I would like to understand how Qiskit intended for the Clifford
object to be used, like is there a way to just take the info it contains as
classical information that we keep track of, like a Clifford frame?
Best,
Jordan Sullivan
…On Thu, Nov 14, 2024, 1:18 PM Misty Wahl ***@***.***> wrote:
We are still slightly worse than Qiskit in gate counts, but combining
CollectCliffords and GreedySynthesisClifford does yield an improvement
over UCC w/o that combination:
image.png (view on web)
<https://github.com/user-attachments/assets/e593fd0f-8b31-41a4-85d5-6ae6a3023550>
image.png (view on web)
<https://github.com/user-attachments/assets/2c7780d4-f1b7-4ebd-bcb6-bad1803de434>
—
Reply to this email directly, view it on GitHub
<#84 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYYB5Y4ISZHPNQQQOJUDMT2AUHTDAVCNFSM6AAAAABRXQJK6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZXGQZDQMBUGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
That's how I originally understood the purpose of the Clifford objects, but I need to dig further into the docs to confirm if such a framework is available. Meanwhile, I've found the synthesis (e.g. Clifford synthesis) passes work hand-in-hand with the collection functions, possibly indicating the collection functions being primarily for facilitating synthesis rather than for a hybrid workflow with classical simulation. The Qiskit compilation presentation at IBM QDC also showed collection and synthesis passes working in a similar fashion. As an alternative, we could consider additional optimizations described in the paper on which greedy Clifford synthesis is based (https://arxiv.org/abs/2105.02291) that are not implemented in the current Qiskit version. |
Set `force_consolidate=True` in `ConsolidateBlocks` to reduce gate counts slightly below default qiskit
…cc-benchmarking-are-in-the-natural-gate-set
Using the workaround suggested in Qiskit/qiskit#11659 (comment) to force consolidation in So, once again UCC reigns, albeit with a narrower margin and a caveat: we allow 1q and 2q Clifford gates (not Clifford objects or gates of >2 qubits), in addition to the default target basis. |
So should we maybe add a check for whether the target gateset allows Cliffords (X,Y,Z,H) to decide whether to run this set of passes? |
I'm thinking an |
I would prefer not to add another flag, since we already have a way to specify target gateset. |
As a follow-up to this morning's meeting, I've removed the new passes including I opened PR #90 for adding back the new passes in a way that preserves the natural gateset. |
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.
Two code clean up recommendations to help simplify the test, but looks like it's doing the right thing!
Co-authored-by: nate stemen <nate@unitary.fund>
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.
Nice work! Important test to have.
…cc-benchmarking-are-in-the-natural-gate-set
Co-authored-by: nate stemen <nate@unitary.fund>
Fixes #82 .
Adds a test to check if output circuits have gates outside of the gateset specified by the UCC
BasisTranslator
.As expected, the test added here passes when
CollectCliffords
is commented out but otherwise fails on therandom_clifford
cases.