Skip to content

Commit

Permalink
Deploy preview for PR 359 🛫
Browse files Browse the repository at this point in the history
  • Loading branch information
MarquessV committed Apr 17, 2024
1 parent f2eae88 commit 29edc83
Show file tree
Hide file tree
Showing 5 changed files with 706 additions and 594 deletions.
10 changes: 5 additions & 5 deletions pr-preview/pr-359/quil.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ <h1 class="modulename">

<label class="view-source-button" for="mod-quil-view-source"><span>View Source</span></label>

<div class="pdoc-code codehilite"><pre><span></span><span id="L-1"><a href="#L-1"><span class="linenos">1</span></a><span class="sd">&quot;&quot;&quot;</span>
</span><span id="L-2"><a href="#L-2"><span class="linenos">2</span></a><span class="sd">The `quil` package provides tools for constructing, manipulating, parsing, and printing [Quil](https://github.com/quil-lang/quil) programs.</span>
</span><span id="L-3"><a href="#L-3"><span class="linenos">3</span></a>
</span><span id="L-4"><a href="#L-4"><span class="linenos">4</span></a><span class="sd">⚠️ This package is still in early development and breaking changes should be expected between minor versions.</span>
</span><span id="L-5"><a href="#L-5"><span class="linenos">5</span></a><span class="sd">&quot;&quot;&quot;</span>
<div class="pdoc-code codehilite"><pre><span></span><span id="L-1"><a href="#L-1"><span class="linenos">1</span></a><span class="sd">&quot;&quot;&quot;The `quil` package provides tools for constructing, manipulating, parsing, and printing [Quil](https://github.com/quil-lang/quil) programs.</span>
</span><span id="L-2"><a href="#L-2"><span class="linenos">2</span></a>
</span><span id="L-3"><a href="#L-3"><span class="linenos">3</span></a><span class="sd">⚠️ This package is still in early development and breaking changes should be expected between minor versions.</span>
</span><span id="L-4"><a href="#L-4"><span class="linenos">4</span></a><span class="sd">&quot;&quot;&quot;</span>
</span><span id="L-5"><a href="#L-5"><span class="linenos">5</span></a>
</span><span id="L-6"><a href="#L-6"><span class="linenos">6</span></a><span class="kn">from</span> <span class="nn">.quil</span> <span class="kn">import</span> <span class="o">*</span>
</span></pre></div>

Expand Down
62 changes: 31 additions & 31 deletions pr-preview/pr-359/quil/expression.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ <h2>API Documentation</h2>
<a class="class" href="#FunctionCallExpression">FunctionCallExpression</a>
<ul class="memberlist">
<li>
<a class="variable" href="#FunctionCallExpression.function">function</a>
<a class="variable" href="#FunctionCallExpression.expression">expression</a>
</li>
<li>
<a class="variable" href="#FunctionCallExpression.expression">expression</a>
<a class="variable" href="#FunctionCallExpression.function">function</a>
</li>
</ul>

Expand All @@ -158,13 +158,13 @@ <h2>API Documentation</h2>
<a class="class" href="#InfixExpression">InfixExpression</a>
<ul class="memberlist">
<li>
<a class="variable" href="#InfixExpression.operator">operator</a>
<a class="variable" href="#InfixExpression.left">left</a>
</li>
<li>
<a class="variable" href="#InfixExpression.right">right</a>
</li>
<li>
<a class="variable" href="#InfixExpression.left">left</a>
<a class="variable" href="#InfixExpression.operator">operator</a>
</li>
</ul>

Expand Down Expand Up @@ -684,8 +684,7 @@ <h1 id="variants">Variants:</h1>
</div>
<a class="headerlink" href="#Expression.to_quil"></a>

<div class="docstring"><p>Attempt to convert the instruction to a valid Quil string. Raises
an exception if the instruction can't be converted to valid Quil.</p>
<div class="docstring"><p>Attempt to convert the instruction to a valid Quil string. Raises an exception if the instruction can't be converted to valid Quil.</p>
</div>


Expand All @@ -700,9 +699,10 @@ <h1 id="variants">Variants:</h1>
</div>
<a class="headerlink" href="#Expression.to_quil_or_debug"></a>

<div class="docstring"><p>Convert the instruction to a Quil string. If any part of the instruction can't
be converted to valid Quil, it will be printed in a human-readable debug format
that isn't valid Quil.</p>
<div class="docstring"><p>Convert the instruction to a Quil string.</p>

<p>If any part of the instruction can't be converted to valid Quil, it will be printed in a human-readable debug
format that isn't valid Quil.</p>
</div>


Expand All @@ -717,8 +717,9 @@ <h1 id="variants">Variants:</h1>
</div>
<a class="headerlink" href="#Expression.parse"></a>

<div class="docstring"><p>Parses an <code><a href="#Expression">Expression</a></code> from a string. Raises a <code><a href="#ParseExpressionError">ParseExpressionError</a></code> if the string
isn't a valid Quil expression.</p>
<div class="docstring"><p>Parses an <code><a href="#Expression">Expression</a></code> from a string.</p>

<p>Raises a <code><a href="#ParseExpressionError">ParseExpressionError</a></code> if the string isn't a valid Quil expression.</p>
</div>


Expand Down Expand Up @@ -763,8 +764,9 @@ <h1 id="variants">Variants:</h1>
</div>
<a class="headerlink" href="#Expression.evaluate"></a>

<div class="docstring"><p>Evaluate an expression, expecting that it may be fully reduced to a single complex number.
If it cannot be reduced to a complex number, raises an <code><a href="#EvaluationError">EvaluationError</a></code>.</p>
<div class="docstring"><p>Evaluate an expression, expecting that it may be fully reduced to a single complex number.</p>

<p>If it cannot be reduced to a complex number, raises an <code><a href="#EvaluationError">EvaluationError</a></code>.</p>
</div>


Expand All @@ -779,8 +781,7 @@ <h1 id="variants">Variants:</h1>
</div>
<a class="headerlink" href="#Expression.substitute_variables"></a>

<div class="docstring"><p>Returns a copy of the expression where every matching variable in <code>variable_values</code> is
replaced by the corresponding expression.</p>
<div class="docstring"><p>Returns a copy of the expression where every matching variable in <code>variable_values</code> is replaced by the corresponding expression.</p>
</div>


Expand All @@ -795,8 +796,7 @@ <h1 id="variants">Variants:</h1>
</div>
<a class="headerlink" href="#Expression.to_real"></a>

<div class="docstring"><p>If this is a number with imaginary part "equal to" zero (of <em>small</em> absolute value), return
that number. Otherwise, raises an <code><a href="#EvaluationError">EvaluationError</a></code></p>
<div class="docstring"><p>If this is a number with imaginary part "equal to" zero (of <em>small</em> absolute value), return that number. Otherwise, raises an <code><a href="#EvaluationError">EvaluationError</a></code>.</p>
</div>


Expand All @@ -816,24 +816,24 @@ <h1 id="variants">Variants:</h1>
</div>


<div id="FunctionCallExpression.function" class="classattr">
<div id="FunctionCallExpression.expression" class="classattr">
<div class="attr variable">
<span class="name">function</span><span class="annotation">: <a href="#ExpressionFunction">quil.expression.ExpressionFunction</a></span>
<span class="name">expression</span><span class="annotation">: <a href="#Expression">Expression</a></span>


</div>
<a class="headerlink" href="#FunctionCallExpression.function"></a>
<a class="headerlink" href="#FunctionCallExpression.expression"></a>



</div>
<div id="FunctionCallExpression.expression" class="classattr">
<div id="FunctionCallExpression.function" class="classattr">
<div class="attr variable">
<span class="name">expression</span><span class="annotation">: <a href="#Expression">Expression</a></span>
<span class="name">function</span><span class="annotation">: <a href="#ExpressionFunction">quil.expression.ExpressionFunction</a></span>


</div>
<a class="headerlink" href="#FunctionCallExpression.expression"></a>
<a class="headerlink" href="#FunctionCallExpression.function"></a>



Expand All @@ -853,13 +853,13 @@ <h1 id="variants">Variants:</h1>
</div>


<div id="InfixExpression.operator" class="classattr">
<div id="InfixExpression.left" class="classattr">
<div class="attr variable">
<span class="name">operator</span><span class="annotation">: <a href="#InfixOperator">quil.expression.InfixOperator</a></span>
<span class="name">left</span><span class="annotation">: <a href="#Expression">Expression</a></span>


</div>
<a class="headerlink" href="#InfixExpression.operator"></a>
<a class="headerlink" href="#InfixExpression.left"></a>



Expand All @@ -875,13 +875,13 @@ <h1 id="variants">Variants:</h1>


</div>
<div id="InfixExpression.left" class="classattr">
<div id="InfixExpression.operator" class="classattr">
<div class="attr variable">
<span class="name">left</span><span class="annotation">: <a href="#Expression">Expression</a></span>
<span class="name">operator</span><span class="annotation">: <a href="#InfixOperator">quil.expression.InfixOperator</a></span>


</div>
<a class="headerlink" href="#InfixExpression.left"></a>
<a class="headerlink" href="#InfixExpression.operator"></a>



Expand Down Expand Up @@ -1123,7 +1123,7 @@ <h1 id="variants">Variants:</h1>
</div>
<a class="headerlink" href="#EvaluationError"></a>

<div class="docstring"><p>Error that may occur while evaluation an <code><a href="#Expression">Expression</a></code></p>
<div class="docstring"><p>Error that may occur while evaluation an <code><a href="#Expression">Expression</a></code>.</p>
</div>


Expand Down Expand Up @@ -1153,7 +1153,7 @@ <h5>Inherited Members</h5>
</div>
<a class="headerlink" href="#ParseExpressionError"></a>

<div class="docstring"><p>Error that may occur while parsing an <code><a href="#Expression">Expression</a></code></p>
<div class="docstring"><p>Error that may occur while parsing an <code><a href="#Expression">Expression</a></code>.</p>
</div>


Expand Down
Loading

0 comments on commit 29edc83

Please sign in to comment.