Questions tagged [qiskit]

Quantum computing framework for writing programs and applications

Qiskit is an open-source software development kit (SDK) for working with quantum computers at the level of circuits, pulses, and algorithms.

237 questions
1
vote
0 answers

Why can't we add 'rx'(Rotation around X-axis) and 'ry' gates to the noise model basis gates in Qiskit?

I can easily add any Unitary gate which I create using Qiskit but it gives a warning when I try to add these rotation gates to the noise model basis gates. It might be a problem with the labelling(I used 'rx' and 'ry') or some other issues which I…
1
vote
1 answer

Python quantum Fourier transform

This is the inverse quantum Fourier transform. What changes do I have to do to obtain the quantum Fourier transform (not the inverse)? Is this in the right path at all? How would I encode values x1,x2,x3,x4 into the basis state? from math import …
Steve Bermeo
  • 37
  • 1
  • 7
1
vote
2 answers

Installing qiskit-aer through pip fails

I'm trying to install qiskit on Win10. I typed in my admin cmd : pip install qiskit It goes just fine for terra, ignis, and aqua. However, I have a C compiler problem when installing aer. Here's the error message : Microsoft Windows [version…
Kal8578
  • 51
  • 1
  • 8
1
vote
0 answers

My Bloch sphere is appearing as an ellipse/oval

I tried to plot a Bloch vector. However, my Bloch sphere is appearing as an ellipse/oval instead of a circle. I am having the same issues with qsphere also.Jupyter notebook on my Mac(Safari) from qiskit.visualization import…
1
vote
2 answers

2 entangled qubit gives all states with 25 %

We entangle two quarks; after measurement gives either |01> or |10> with probability of 50%.(regardless of their prior states ,they always give opposite states) when I entangle 2 qubits using Cnot it gives |00> ,|01> ,|10> ,|11> all with 25%…
Ayan Bhunia
  • 479
  • 3
  • 14
1
vote
0 answers

Failed to install Qiskit through Anaconda

Windows 10 Anaconda Python 3.7 pip 20.1.1 I trid to install qiskit on Anaconda Prompt: pip install qiskit and it reports error while builidng wheels for cvxpy, scs, ecos: Building Wheels for collected packages: cvxgy, scs Building wheel for…
Chrsi
  • 93
  • 5
1
vote
0 answers

How to embed classical iterations into the oracle of Grover's algorithm in Qiskit?

I am newly using Qiskit to learn quantum computing. Now I want to know if there is any way to make this: For instance, I obtain an array X, where each element is sum of something else, say X[0] = y[0][0]+y[0][1]+...+y[0][m], X[1] =…
Zaragoss
  • 11
  • 4
1
vote
1 answer

AssertionError: wrong color format 'ansibrightred'

I am running my old qiskit code after a very long time it's not running now showing error wrong color format 'ansibrightred' and I don't know why? from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister # %matplotlib inline circuit =…
zircon
  • 742
  • 1
  • 10
  • 22
1
vote
2 answers

How to build a complex controlled gate in the Qiskit?

I work on theory tasks in quantum computing, and make simple experiments with Qiskit. Unfortunately, I can't find a way how to make a complex control gates there, where control is in the quantum register. I would like to have a "c_if" analogue,…
Oxoron
  • 664
  • 1
  • 7
  • 26
1
vote
0 answers

How to do the square root of X operation in Qiskit

I'm trying to do the Bell Inequality Test in Qiskit but to do that you need preform the controlled negative square root of X operation. An example of this in Cirq is cirq.CNOT(bob_ref, bob)**-0.5 I tried to do something similar in Qiskit and it…
1
vote
1 answer

How to code U gate in a quantum circuit using Qiskit?

I am reading this paper and trying to implement a quantum circuit it has provided in Figure 11. I want to code this circuit using Qiskit. The circuit I am trying to implement is attached. I have coded some parts of the circuit so far. This is my…
Protik Nag
  • 511
  • 5
  • 20
1
vote
1 answer

Kernel dies again and again in qiskit

I am running the following code on Qiskit using IBM Q experience's jupyter notebook here is the code : %matplotlib inline # Importing standard Qiskit libraries and configuring account from qiskit import QuantumCircuit, execute, Aer,…
1
vote
1 answer

IBMQProviderError: 'No provider matching the criteria'

Given below is the code I ran on jupyter notebook I have created account on IBM for this project. Please help ! import qiskit as q import numpy as np import matplotlib %matplotlib inline circuit = q.QuantumCircuit(2 , 2) # 2 qubit and 2 classical…
susmit410
  • 9
  • 4
1
vote
1 answer

How to perform modeling of qubit observation in Qiskit

I was trying to write a program that performs various operation on qubits with qiskit, and one of such operations is to perform the following: "Qubit observation is simulated, modeling the wave function collapse as follows: r <= |a^2|, x = 0…
Ming
  • 55
  • 4
1
vote
1 answer

How to install Qiskit with only Jupyter Notebook?

I want to use Jupyter Notebook without installing Anaconda on Ubuntu 18.04. I do not want to use any virtual environment. What can I do to install Qiskit? I have tried to install Qiskit with pip3. pip3 install qiskit This shows the following…
Protik Nag
  • 511
  • 5
  • 20