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

random_clifford does not produce random Cliffords on 2 qubits #13590

Open
ShellyGarion opened this issue Dec 20, 2024 · 0 comments · May be fixed by #13606
Open

random_clifford does not produce random Cliffords on 2 qubits #13590

ShellyGarion opened this issue Dec 20, 2024 · 0 comments · May be fixed by #13606
Assignees
Labels
bug Something isn't working mod: quantum info Related to the Quantum Info module (States & Operators)
Milestone

Comments

@ShellyGarion
Copy link
Member

ShellyGarion commented Dec 20, 2024

Environment

  • Qiskit version: 1.3
  • Python version:
  • Operating system:

random_clifford does not produce random Cliffords on 2 qubits.

What is happening?

random_clifford(2) produces only Cliffords with 0,1,2 CX gates and not 3 CX gates.

How can we reproduce the issue?

for seed in range(100):
    cliff = random_clifford(2, seed)
    qc = cliff.to_circuit()
    cnt = qc.count_ops().get('cx', 0)
    print (cnt)

What should happen?

random_clifford(2) should also produce Cliffords with 3 CX's.

Any suggestions?

This is probably following this PR: #12695

@ShellyGarion ShellyGarion added bug Something isn't working mod: quantum info Related to the Quantum Info module (States & Operators) labels Dec 20, 2024
@ShellyGarion ShellyGarion added this to the 1.3.2 milestone Dec 20, 2024
@alexanderivrii alexanderivrii linked a pull request Dec 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mod: quantum info Related to the Quantum Info module (States & Operators)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants