Skip to content
#

quantum

Here are 363 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 = 
t-fevir
t-fevir commented Jul 24, 2019

The full-state simulator can be passed a PRNG seed when constructed, to make experiments exactly reproducible. https://docs.microsoft.com/en-us/quantum/machines/full-state-simulator?view=qsharp-preview

It would be great to add this option to the ToffoliSimulator constructor as well. [https://github.com/microsoft/qsharp-runtime/blob/master/src/Simulation/Simulators/ToffoliSimulator/Rando

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.