Skip to content
#

quantum

Here are 335 public repositories matching this topic...

pennylane
strawberryfields
hay-k
hay-k commented Jan 6, 2020

Issue description

The function sf.apps.similarity.orbit_cardinality does not work, when the second argument (i.e. 'modes') is larger than 170. The issue happens because of the function scipy.special.factorial, which, in the way it is used, calculates factorials only up to (i

bug
cgranade
cgranade commented Mar 27, 2020

Describe the bug

When using a code action to add a missing open declaration to a source file that does not yet contain any open statements (including Microsoft.Quantum.Intrinsic), the new open declaration is included at the wrong location.

To Reproduce

Start with the following source file:

namespace Microsoft.Quantum.Arrays {

    /// # Summary
    function All<'T> (pre
perak
perak commented Jun 11, 2019

Good example is teleportation circuit:

QASM:

OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
creg c0[1];
creg c1[1];
rx (pi/4) q[0];
h q[1];
cx q[1], q[2];
cx q[0], q[1];
h q[0];
measure q[1] -> c1[0];
if(c1==1) x q[2];
measure q[0] -> c0[0];
if(c0==1) z q[2];

When exported to Cirq, code currently looks like this:

import cirq
import numpy as np

q = 
samarsha
samarsha commented Mar 10, 2020

Describe the bug

When the computer's current locale uses a comma for the decimal point, the "ToStringTests" in the "DebuggingToolsTests" fail because they call ToString on a tuple containing a double, which formats the double using a comma. However, the expected test output is hard-coded to expect a period. The test fails, for example, in the German (de-DE) locale.

To Reproduce

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.