qiskit Questions
3
I´m using Python 3 and I´m working in jupyter, when I try to import qiskit the following error is showed:
---------------------------------------------------------------------------
AttributeError...
Thinkable asked 29/5, 2020 at 1:27
1
The regular Matrix representation of a CNOT gate as found in literature is:
CNOT =
\begin{bmatrix}
1 & 0 & 0 & 0\\
0 & 1 & 0 & 0\\
0 & 0 & 0 & 1\\
0 &...
Mason asked 21/1, 2021 at 18:24
2
defining function for toffoli gate:
def toffoli(qc,i1,i2,i3):
qc.h(i3)
qc.cx(i2,i3)
qc.tdg(i3)
qc.cx(i1,i3)
qc.t(i3)
qc.cx(i2,i3)
qc.tdg(i3)
qc.cx(i1,i3)
qc.t(i3)
qc.tdg(i2)
qc.cx(i1,i2)
qc.h(i3)
...
Zippora asked 30/5, 2018 at 18:36
2
I am using colab for qiskit and even after installing pylatexenc using pip this still comes as an error, I also used !pip.Here's the full pic
Washy asked 14/10, 2020 at 15:29
2
In Qiskit there is the transpile() function (see documentation). My understanding of a transpiler is best described as a way of converting one set of gate operations to another set of gate operatio...
Golightly asked 14/5, 2020 at 6:47
2
Hi all: Cirq offers a way to create a unitary gate from an array. I tried doing the same in Qiskit but have not been able to quite make it. Here is a sample code with what I could put together so f...
Airport asked 24/12, 2019 at 19:6
1
Solved
I'm trying to use the IBM Q Experience API and I installed the library and wrote a quick test code. At first, it couldn't find the module. Then, I added the whole sys thing. Admittedly, I just copi...
Octameter asked 25/1, 2018 at 23:38
1
© 2022 - 2024 — McMap. All rights reserved.