Skip to content

Commit

Permalink
chore: refactor away deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jselig-rigetti committed Sep 6, 2023
1 parent e7ac350 commit 1787c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cirq-rigetti/cirq_rigetti/quil_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def circuit_from_quil(quil: str) -> Circuit:
elif isinstance(inst, PyQuilGate):
quil_gate_name = inst.name
quil_gate_params = inst.params
line_qubits = list(LineQubit(q.index) for q in inst.qubits)
line_qubits = list(LineQubit(q) for q in inst.get_qubit_indices())
if quil_gate_name not in defined_gates:
raise UndefinedQuilGate(f"Quil gate {quil_gate_name} not supported in Cirq.")
cirq_gate_fn = defined_gates[quil_gate_name]
Expand Down

0 comments on commit 1787c12

Please sign in to comment.