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
0
votes
0 answers

How to get the Qiskit textbook widgets working?

For example, when trying to run from qiskit_textbook.widgets import gate_demo gate_demo(gates='pauli') in Jupyter notebook or a script, the output I get is HBox(children=(Button(description='X', layout=Layout(height='3em'), style=ButtonStyle()),…
Calle
  • 1
  • 1
0
votes
1 answer

using third part modules in IBM quantum experience (Tensorflow)

Is there any option to use Tensorflow in IBM quantum experience? I have searched on google but I couldn't find anything. I thought about copying the source code, any suggestion?
0
votes
1 answer

Timeout when trying to install Qiskit on macOS

I am trying to install Qiskit 0.20.0 on my machine running macOS and seeing the below error pip install qiskit Collecting qiskit Using cached qiskit-0.20.0.tar.gz (4.0 kB) Collecting qiskit-terra==0.15.1 Downloading…
Vidyasagar Machupalli
  • 2,737
  • 1
  • 19
  • 29
0
votes
1 answer

In quantum teleportation, should the X gate be before Z gate? Possible error on diagram on QisKit website

I was reading this page about Quantum Teleportation :- https://qiskit.org/textbook/ch-algorithms/defining-quantum-circuits.html Following this quantum circuit diagram, I calculated the quantum states (from left to right as it process thru the…
Hum YW
  • 1
  • 2
0
votes
2 answers

Qiskit Portfolio Optimization Application

I recently got flung into the world of quantum computing and I'm a beginner at coding. I was assigned to do the Portfolio Optimization tutorial of the Qiskit Finance Tutorials and input real data. Truth be told, I'm clueless. It's my understanding…
0
votes
1 answer

From DFT to QFT python/qiskit

I have the following code x = [1, -4, 5, -2] # Data points N = len(x) # Number of samples n = np.arange(N) # Current sample k = n.reshape((N, 1)) # Current frequency e = np.exp(-2j * np.pi * k * n / N) # Exponential part DFT = np.dot(e, x) How…
Steve Bermeo
  • 37
  • 1
  • 7
0
votes
1 answer

My qiskit code's output differ from the Lecturer: Ryan O’Donnell

My qiskit code's output differ from the Lecturer: Ryan O’Donnell I am testing the table shown in attached image by using qiskit in python3.8.5 and qiskit version {'qiskit-terra': '0.14.2', 'qiskit-aer': '0.5.2', 'qiskit-ignis': '0.3.3',…
0
votes
0 answers

Qiskit quantum fourier transform

We have 4 numbers x = [x1, x2, x3, x4] We want to prepare quantum state Psi somehow to encode x We want to make QFT on Psi to get Phi = QFT (Psi) I have no idea how to approach this on qiskit
Steve Bermeo
  • 37
  • 1
  • 7
0
votes
1 answer

Shaping Numpy Arrays for pytorch GAN

(pre-processing for qiskit QGAN but the use case is somewhat irrelevant) I'm a bit lost trying to figure out how to preprocess an image dataset before passing it through a GAN. Below is all the relevant code up to my error. This code is derived from…
jan
  • 123
  • 9
0
votes
1 answer

How does DenseLayout in qiskit's transpiler work?

I'm looking for an explanation about the Dense Layout algorithm used by qiskit's transpiler. I saw the source code, but still I don't understand what """Choose a Layout by finding the most connected subset of qubits""" means! Is there a paper about…
0
votes
1 answer

WARNING: BLAS library not found, Qiskit Installation

I'm trying to install Qiskit and am coming across an error: **************************************************************** *** WARNING: BLAS library not found. * You can include the BLAS library in the global environment LDFLAGS, eg * export…
Jlee523
  • 147
  • 4
0
votes
1 answer

Problem executing Qiskit with Dask. Worker does not start

I am trying to execute Qiskit using Dask. When I submit a function that execute a quantum circuit simulation using Qiskit, it does not work properly and additionally, workers start to produce errors with callbacks. So i decide to start preloading…
0
votes
2 answers

IBMQProvider issue

I successfully installed and ran a couple of circuits on a backend the other day (essex). Everything was ok, results came up, but the next day, once I wanted more QC, I could not manage to get a provider. I have looked into my account (active),…
0
votes
0 answers

Python script slowing down as time progresses [Resolved]

RESOLUTION: Seems qiskit does something weird when you re-use circuits that means running them takes extra time. The solution was to pull for idx, image in enumerate(this_data): np.random.seed(42) quantum_circuits =…
Milan
  • 344
  • 1
  • 10
0
votes
1 answer

Returning chance of qubit state as a decimal

I'm trying to run X gates on 2 qubits and then return the chance of the qubit in either state as a decimal. I've searched for answers but I haven't gotten anywhere. ##THE CODE## import math import numpy as np from qiskit import * from…