This fixes the following warnings that currently are triggered in the development version tests:
test/cutting/test_wire_cutting_transforms.py: 88 warnings
test/cutting/test_cutting_workflows.py: 4 warnings
/home/runner/work/circuit-knitting-toolbox/circuit-knitting-toolbox/circuit_knitting/cutting/wire_cutting_transforms.py:79: DeprecationWarning: Treating CircuitInstruction as an iterable is deprecated legacy behavior since Qiskit 1.2, and will be removed in Qiskit 2.0. Instead, use the `operation`, `qubits` and `clbits` named attributes.
other=instructions[0],
test/utils/test_transforms.py: 76 warnings
/home/runner/work/circuit-knitting-toolbox/circuit-knitting-toolbox/test/utils/test_transforms.py:40: DeprecationWarning: Treating CircuitInstruction as an iterable is deprecated legacy behavior since Qiskit 1.2, and will be removed in Qiskit 2.0. Instead, use the `operation`, `qubits` and `clbits` named attributes.
if len(gate[1]) == 2:
This fixes the following warnings that currently are triggered in the development version tests: