Skip to content

Commit

Permalink
Appease sphinx by importing 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 used by
quilatom.ParameterDesignator, which causes sphinx to choke when
generating the docs.
  • Loading branch information
appleby committed Sep 17, 2019
1 parent 8143043 commit 25d86be
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 25d86be

Please sign in to comment.