We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Layout.get_registers() returns (virtual) qubits:
return list(self.get_virtual_bits().keys())
Layout.get_registers() returns (virtual quantum) registers:
return set([reg for reg, idx in self.get_virtual_bits().keys()])
Change the implementation of Layout.get_registers() to:
Change the line in BasicSwap.run()
for qreg in current_layout.get_registers(): if qreg[0] not in swap_layer.qregs.values(): swap_layer.add_qreg(qreg[0])
to
for qreg in current_layout.get_registers(): if qreg not in swap_layer.qregs.values(): swap_layer.add_qreg(qreg)
The text was updated successfully, but these errors were encountered:
53706b2
Fix Qiskit#1791 (Qiskit#1792)
1beb2b3
* Layout.get_registers() should return registers (Qiskit#1791)
No branches or pull requests
Information
What is the current behavior?
Layout.get_registers() returns (virtual) qubits:
What is the expected behavior?
Layout.get_registers() returns (virtual quantum) registers:
Suggested solutions
Change the implementation of Layout.get_registers() to:
Change the line in BasicSwap.run()
to
The text was updated successfully, but these errors were encountered: