quantum
Here are 502 public repositories matching this topic...
Take the following example:
from qiskit import QuantumCircuit
from qiskit.circuit.library import ZGate
qc = QuantumCircuit(3)
qc.append(ZGate().control(2, ctrl_state='01'), range(3))The text and latex drawer outputs are the following:
qc.draw('text')
q_0: ─■─
│
q_1: ─o─
│
q_2: ─■─qc.draw('latex') method to QubitCircuit containing the FREDKIN gate, the following error is produced:
ValueError: Gate RY requires one target
To Reproduce
from qutip.qip.circuit import QubitCircuit
A = QubitCircuit(3)
A.add_gate("FREDKIN", targets=[0, 1], controls=[2])
A.resolve_gates()It might be a good idea to check this
-
Updated
Mar 11, 2021 - Python
-
Updated
Aug 16, 2019 - Python
It would be nice to allow users to set a custom value for the tensorflow dtype if they are really pushing their simulations (and aware of the memory tradeoffs). This would be a very straightforward feature to add, most likely by adjusting backend_options to accept a dtype argument or something similar
See, e.g., the discussion below:
You could change this line https://github.com/XanaduAI
Most documentation comments in the compiler only use the <summary> tag. For short comments, this is fine, but in many cases the summary is several paragraphs long and would be easier to read if it used standard documentation tags to structure the information. This is especially important for exceptions - exceptions mentioned in the <summary> tag are easy to miss, whereas the special `<exceptio
-
Updated
Jan 31, 2021 - Jupyter Notebook
-
Updated
Aug 27, 2019 - Python
-
Updated
Jun 2, 2020 - Python
-
Updated
Mar 7, 2021 - CSS
Describe the bug
If I provide Partitioned an array of length N and partition sizes of total length N, the return contains an extra partition of length 0 in the end. This makes it inconvenient to use: if I want to split an array into K parts of equal length ([example](https://github.com/microsoft/Quantum
-
Updated
Jan 22, 2021 - Julia
Now, there's no unit test.
-
Updated
Mar 11, 2021 - C++
It would be helpful to add a tutorial explaining how to run things in parallel (mpirun etc). There are some users who are not familiar with mpi (see #173 ) and it is useful to explain the basic steps to do this.
Benchmarks?
-
Updated
Nov 13, 2020 - Python
When the Q# entry point has a parameter with no associated documentation, the description of the option on the command line is blank:
@EntryPoint()
operation Foo(myParam : Int) : Unit {}> dotnet run
Option '--my-param' is required.
Usage:
App [options] [command]
Options:
--my-param <my-param> (REQUIRED)
-s, --simulator <simulator> The name of th
-
Updated
Mar 10, 2021 - Python
We need to create a Q.History documentation page that is similar in nature to the existing Q class documentation pages. See Q-ComplexNumber.html as an example.
-
Updated
Oct 14, 2019
-
Updated
Jan 7, 2021 - C++
-
Updated
Mar 11, 2021 - F#
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:


Here are some examples:
repeat-until-successandsudoku-grover