Skip to content

Commit

Permalink
Update pyquil/latex/_diagram.py
Browse files Browse the repository at this point in the history
Co-authored-by: jselig-rigetti <[email protected]>
  • Loading branch information
MarquessV and jselig-rigetti authored May 31, 2024
1 parent 020a293 commit 65c2c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyquil/latex/_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def _build_custom_source_target_op(self) -> None:
raise RuntimeError("Internal error: working_instructions is None.")
instr = self.working_instructions[self.index]
if not isinstance(instr, Gate):
raise RuntimeError("Internal error: expected a Gate instruction.")
raise RuntimeError("Internal error: expected a Gate instruction, got ({type(instr)}).")
source, target = qubit_indices(instr)
if self.diagram is None:
raise RuntimeError("Internal error: expected diagram to exist.")
Expand Down

0 comments on commit 65c2c9e

Please sign in to comment.