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
The multi-controlled gate by RZGate().control() is less optimized.
We create a circuit with a 6-qubit multi-controlled RZGate. We then transpile it to an Eagle device, and count the number of entangling gates.
from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager backend = service.backend("ibm_sherbrooke") pm = generate_preset_pass_manager(optimization_level=3, backend=backend, seed_transpiler=12345) import numpy as np from qiskit import QuantumCircuit, QuantumRegister from qiskit.circuit.library import RZGate n=6; ang=np.pi/7 qr = QuantumRegister(n) qc = QuantumCircuit(qr) qc.append(RZGate(ang).control(n-1), qr) isa_qc=pm.run(qc) print(isa_qc.count_ops()['ecr'])
The above code outputs 266 in 1.3.0rc2, while 65 in 1.2.4.
No response
The text was updated successfully, but these errors were encountered:
add_control
Successfully merging a pull request may close this issue.
Environment
What is happening?
The multi-controlled gate by RZGate().control() is less optimized.
How can we reproduce the issue?
We create a circuit with a 6-qubit multi-controlled RZGate. We then transpile it to an Eagle device, and count the number of entangling gates.
What should happen?
The above code outputs 266 in 1.3.0rc2, while 65 in 1.2.4.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: