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
z
qscout_compile
import qiskit import qiskit_superstaq as qss qc = qiskit.QuantumCircuit(2, 2) qc.cz(0, 1) qc.measure_all() print(qc) # prints # ░ ┌─┐ # q_0: ─■──░─┤M├─── # │ ░ └╥┘┌─┐ # q_1: ─■──░──╫─┤M├ # ░ ║ └╥┘ # c: 2/═══════╬══╬═ # ║ ║ # meas: 2/═══════╩══╩═ # 0 1 # provider = qss.superstaq_provider.SuperstaqProvider(token) compiler_output = provider.qscout_compile(qc) print(compiler_output.circuit) # prints # ┌─────────────┐┌───┐┌───────────┐┌─────────────┐┌───┐ ░ ┌─┐ # q_0: ┤ R(π/2,-π/2) ├┤ Z ├┤0 ├┤ R(π/2,-π/2) ├┤ S ├─░─┤M├─── # ├─────────────┤├───┤│ Rxx(π/2) │├─────────────┤├───┤ ░ └╥┘┌─┐ # q_1: ┤ R(π/2,-π/2) ├┤ Z ├┤1 ├┤ R(π/2,-π/2) ├┤ S ├─░──╫─┤M├ # └─────────────┘└───┘└───────────┘└─────────────┘└───┘ ░ ║ └╥┘ # c: 2/═════════════════════════════════════════════════════════╩══╩═ # 0 1
The z gates came be moved to the right of Rxx because and combined into the s gates.
Rxx
s
The text was updated successfully, but these errors were encountered:
This is an interesting issue because the cirq.commutes() function doesn't recognize the Rxx gate commuting with the pair of Z gates
cirq.commutes()
Sorry, something went wrong.
No branches or pull requests
The
z
gates came be moved to the right ofRxx
because and combined into thes
gates.The text was updated successfully, but these errors were encountered: