Skip to content

Commit d8c1e61

Browse files
chore: refactor away deprecation warning
1 parent 0d5cd65 commit d8c1e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cirq-rigetti/cirq_rigetti/quil_input.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def circuit_from_quil(quil: str) -> Circuit:
255255
elif isinstance(inst, PyQuilGate):
256256
quil_gate_name = inst.name
257257
quil_gate_params = inst.params
258-
line_qubits = list(LineQubit(q.index) for q in inst.qubits)
258+
line_qubits = list(LineQubit(q) for q in inst.get_qubit_indices())
259259
if quil_gate_name not in defined_gates:
260260
raise UndefinedQuilGate(f"Quil gate {quil_gate_name} not supported in Cirq.")
261261
cirq_gate_fn = defined_gates[quil_gate_name]

0 commit comments

Comments
 (0)