This PR supports context shift with multiple rules with the same source gate type, e.g., "rz q0 0.25pi = t q0", "rz q0 -0.25pi = tdg q0", and also supports constant parameters in create_single_gate_GraphXfer (this feature was already supported in create_GraphXfer_from_qasm_str).
This PR also does some codebase cleaning, and adds a test to test_context_shift.
This PR supports context shift with multiple rules with the same source gate type, e.g.,
"rz q0 0.25pi = t q0", "rz q0 -0.25pi = tdg q0"
, and also supports constant parameters increate_single_gate_GraphXfer
(this feature was already supported increate_GraphXfer_from_qasm_str
).This PR also does some codebase cleaning, and adds a test to
test_context_shift
.