-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
mod: transpilerIssues and PRs related to TranspilerIssues and PRs related to Transpilertype: feature requestNew feature or requestNew feature or request
Milestone
Description
What should we add?
Since the fractional gates are available, RZZ can be used as a basis gate.
But, optimization of consecutive RZZ gates does not seem to be enough as follows.
It would be nice to merge them into a single RZZ.
from qiskit import generate_preset_pass_manager, QuantumCircuit
qc = QuantumCircuit(2)
qc.rzz(0.1, 0, 1)
qc.rzz(0.2, 0, 1)
pm = generate_preset_pass_manager(optimization_level=3, basis_gates=["rzz"])
qc2 = pm.run(qc)
print(qc2)
output (both 1.2.4 and main branch)
q_0: ─■─────────■────────
│ZZ(0.1) │ZZ(0.2)
q_1: ─■─────────■────────
Metadata
Metadata
Assignees
Labels
mod: transpilerIssues and PRs related to TranspilerIssues and PRs related to Transpilertype: feature requestNew feature or requestNew feature or request