Skip to content

Commit

Permalink
Merge pull request #273 from EarlMilktea/fix-invalid-escapes
Browse files Browse the repository at this point in the history
Fix invalid escape sequences
  • Loading branch information
jvdwetering authored Nov 4, 2024
2 parents 9628d64 + ec623e2 commit 24f87ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demos/Time Benchmark.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@
"plt.scatter(x, y,color='grey') # Plot all the datapoints\n",
"c = np.polyfit(np.log(x),np.log(y),1, w=np.sqrt(y)) # Generate power law fit\n",
"a = np.linspace(0,max(x),100); b = (math.e**c[1])*a**c[0]\n",
"plt.plot(a,b,'-',color='red',label=\"$y = a\\cdot x^{{{:.2f}}}$\".format(c[0])) # Plot the fit\n",
"plt.plot(a,b,'-',color='red',label=r\"$y = a\\cdot x^{{{:.2f}}}$\".format(c[0])) # Plot the fit\n",
"plt.ylim(ymin=0); plt.xlim(xmin=0,xmax=max(x)+50); \n",
"plt.xlabel(\"Gate-count\"); plt.ylabel(\"Time [seconds]\"); plt.legend(loc='upper left');"
]
Expand Down
2 changes: 1 addition & 1 deletion pyzx/gflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""
r"""
Based on algorithm by Perdrix and Mhalla. Here is the pseudocode from
dx.doi.org/10.1007/978-3-540-70575-8_70
Expand Down
2 changes: 1 addition & 1 deletion scratchpads/JohnDoodle.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6167,7 +6167,7 @@
"\n",
"c = np.polyfit(np.log(x),np.log(y),1, w=np.sqrt(y)) # Generate power law fit\n",
"a = np.linspace(0,max(x),100); b = (math.e**c[1])*a**c[0]\n",
"ax1.plot(a,b,'-',color='red',label=\"$y = a\\cdot x^{{{:.2f}}}$\".format(c[0])) # Plot the fit\n",
"ax1.plot(a,b,'-',color='red',label=r\"$y = a\\cdot x^{{{:.2f}}}$\".format(c[0])) # Plot the fit\n",
"\n",
"ax1.set_ylabel(\"time [s]\")\n",
"ax1.set_xlabel(\"qubits\")\n",
Expand Down

0 comments on commit 24f87ce

Please sign in to comment.