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

Gswap cannot be used as a two-qubit standard native gate for two-qubit RB as CliffordCompilationRules taking too long #471

Open
vsandinh opened this issue Jul 20, 2024 · 0 comments
Assignees
Labels
bug A bug or regression
Milestone

Comments

@vsandinh
Copy link

vsandinh commented Jul 20, 2024

Describe the bug
I tried to run RB-Overview.ipynb file but with small change in the native gate set.
I used 'Gswap' which is one of the standard two-qubit gates in the documentation of QubitProcessorSpec class. However, it is taking forever to instantiate the CliffordCompilationRules class.

I also tried a custom two-qubit gate which is iSWAP, the program showed similar behavior

To Reproduce
Here is the code:

from __future__ import print_function #python 2 & 3 compatibility
import pygsti
from pygsti.processors import QubitProcessorSpec as QPS
from pygsti.processors import CliffordCompilationRules as CCR

n_qubits = 2
qubit_labels = ['Q0','Q1'] 
gate_names = ['Gxpi2', 'Gxmpi2', 'Gypi2', 'Gympi2', 'Gswap'] 
availability = {'Gswap':[('Q0','Q1')]}
pspec = QPS(n_qubits, gate_names, availability=availability,
            qubit_labels=qubit_labels, )

compilations = {'absolute': CCR.create_standard(pspec, 'absolute', ('paulis', '1Qcliffords'), verbosity=0),            
                'paulieq': CCR.create_standard(pspec, 'paulieq', ('1Qcliffords', 'allcnots'), verbosity=0)}

Expected behavior
CliffordCompilationRules should be instantiated.

Environment (please complete the following information):

  • pyGSTi version 0.9.12.3
  • python version 3.9.7
  • OS OSX 14.5
@vsandinh vsandinh added the bug A bug or regression label Jul 20, 2024
@vsandinh vsandinh changed the title Gswap cannot be used as a two-qubit native gate for two-qubit RB Gswap cannot be used as a two-qubit standard native gate for two-qubit RB as CliffordCompilationRules taking too long Jul 20, 2024
@sserita sserita added this to the 0.9.13 milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug or regression
Projects
None yet
Development

No branches or pull requests

3 participants