Skip to content
#

quantum

Here are 417 public repositories matching this topic...

gillenhaalb
gillenhaalb commented Oct 9, 2019

See attached files. The Python call accepts 0 and 1 as input qubit result types (putting them as Result.Zero and Result.One in Q#), but also accepts decimals and negative numbers without throwing an error. It appears that it rounds to whichever is closer, 0 or 1. So, when the argument is anything >0.5, it goes to Result.One, and anything =<0.5 is put to Result.Zero.

Side note: wildcard import

msramalho
msramalho commented Nov 15, 2018

Whenever a slide has minted code, like so:

\begin{frame}[fragile]{Example minted}
	\begin{minted}{python}
		from qiskit_aqua import run_algorithm

		print(run_algorithm(params)['result'])
	\end{minted}
\end{frame}

One is unable to add the \pagenumber before \end{frame} as it gets left aligned instead of right aligned:
![image](https://user-images.githubusercontent.com/1

Improve this page

Add a description, image, and links to the quantum topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the quantum topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.