Skip to content

Commit

Permalink
Fix: Adapt to Qiskit#12974
Browse files Browse the repository at this point in the history
  • Loading branch information
raynelfss committed Aug 1, 2024
1 parent d59f0db commit 0d3a164
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/circuit/src/equivalence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ impl EquivalenceLibrary {
fn set_entry(&mut self, py: Python, gate: GateOper, entry: Vec<CircuitRep>) -> PyResult<()> {
for equiv in entry.iter() {
raise_if_shape_mismatch(&gate, equiv)?;
raise_if_param_mismatch(py, &gate.params, equiv.data.get_params_unsorted(py)?)?;
raise_if_param_mismatch(py, &gate.params, equiv.data.unsorted_parameters(py)?)?;
}
let op_ref: OperationRef = gate.operation.view();
let key = Key {
Expand Down Expand Up @@ -605,7 +605,7 @@ impl EquivalenceLibrary {
raise_if_param_mismatch(
py,
&gate.params,
equivalent_circuit.data.get_params_unsorted(py)?,
equivalent_circuit.data.unsorted_parameters(py)?,
)?;
let op_ref = gate.operation.view();
let key: Key = Key {
Expand Down Expand Up @@ -697,7 +697,7 @@ impl EquivalenceLibrary {
fn raise_if_param_mismatch(
py: Python,
gate_params: &[Param],
circuit_parameters: Py<PySet>,
circuit_parameters: Bound<PySet>,
) -> PyResult<()> {
let gate_params_obj = PySet::new_bound(
py,
Expand Down

0 comments on commit 0d3a164

Please sign in to comment.