Skip to content

Commit

Permalink
Appease sphinx by import quilatom.Expression in gates.py
Browse files Browse the repository at this point in the history
Import quilatom.Expression in gates.py. Even though it isn't
referenced directly, it is indirectly need for
quilatom.ParameterDesignator, which causes sphinx to choke when
generating the docs.
  • Loading branch information
appleby committed Sep 17, 2019
1 parent 8143043 commit 3684e8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyquil/gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
from warnings import warn
from typing import Any, Callable, Dict, Optional, Tuple, Union

from pyquil.quilatom import (Addr, MemoryReference, MemoryReferenceDesignator, Parameter,
ParameterDesignator, Qubit, QubitDesignator, QubitPlaceholder,
unpack_classical_reg, unpack_qubit)
from pyquil.quilatom import (Addr, Expression, MemoryReference, MemoryReferenceDesignator,
Parameter, ParameterDesignator, Qubit, QubitDesignator,
QubitPlaceholder, unpack_classical_reg, unpack_qubit)
from pyquil.quilbase import (AbstractInstruction, Gate, Halt, Reset, ResetQubit, Measurement, Nop,
Wait,
ClassicalNeg, ClassicalNot,
Expand Down

0 comments on commit 3684e8b

Please sign in to comment.