We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d5cd65 commit d8c1e61Copy full SHA for d8c1e61
cirq-rigetti/cirq_rigetti/quil_input.py
@@ -255,7 +255,7 @@ def circuit_from_quil(quil: str) -> Circuit:
255
elif isinstance(inst, PyQuilGate):
256
quil_gate_name = inst.name
257
quil_gate_params = inst.params
258
- line_qubits = list(LineQubit(q.index) for q in inst.qubits)
+ line_qubits = list(LineQubit(q) for q in inst.get_qubit_indices())
259
if quil_gate_name not in defined_gates:
260
raise UndefinedQuilGate(f"Quil gate {quil_gate_name} not supported in Cirq.")
261
cirq_gate_fn = defined_gates[quil_gate_name]
0 commit comments