Cannot import Aer from Qiskit 0.7

I've created a new virtual environment in Anaconda and installed several packages using pip (namely, numpy, scipy, matplotlib, qiskit and maybe 1 or 2 more). I open the interpreter and try to...

No module named 'qiskit'

import numpy as np from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister from qiskit import execute When trying the above code, I am receiving the following...

Pip install qiskit: Command errored out with exit status 255:

I am trying to install Qiskit on elementaryOS juno running Python 3.7, using pip. I even upgraded to the latest pip. I get the following log: Building wheels for collected packages: qiskit ...

Quantum Programming . . . How?

So I understand some of the basic ideas with setting up a quantum program . . . libraries, classical logic feeding to a quantum API, all that. I even get that there are quantum operations you...

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...

No backend matches the criteria, Qiskit

I am writing a code for Quantum teleportation, but I don't know how to solve this error 'No backend matches the criteria' Here is a code: circuit.measure(2,2) simulator =...

Implement quantum teleportation in qiskit

I am trying to implement the quantum teleportation protocol from the qiskit textbook in qiskit: I start with q_0 bit = 1 and I expect that q_3 = 1 at the end but it does not work. from qiskit...

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...

qiskit plots not showing up in spyder console

System Informations Qiskit version: 0.17.0 Python version: 3.7.7 Operating system: Windows 10 home x64 What is the current behavior? I am using spyder 4.1.1 on Anaconda and any time I try to...

Decompose a Quantum Circuit in Cirq

I am working on Cirq and need to perform certain unitary operations on qubits. For that, I am using the MatrixGate() function in Cirq. Unlike Qiskit, I could not find any function like decompose...

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...

Can´t import qiskit, attribute error in numpy: " 'numpy.random' has no attribute 'default_rng'"

I´m using Python 3 and I´m working in jupyter, when I try to import qiskit the following error is...

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...

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...

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...

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...

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...

Using the qiskit_textbook Package

I've installed the qiskit_textbook package in Anaconda on Windows 10 using pip install git+https://github.com/qiskit-community/qiskit-textbook.git#subdirectory=qiskit-textbook-src from the...

The class MatplotlibDrawer needs pylatexenc. to install, run "pip install pylatexenc"

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

Colab running Pennylane with DeviceError

I tried to run Pennylane on Colab, so I install it first. But the "Installed devices" are null, what's going on? I have restart and rebuilt for several times. Here is my code. !pip install...

Visualizing circuits in qiskit with matplotlib

I'm learning how to use qiskit and I'm using the jupyter notebook, but everytime I try to visualize the circuit with the attribute draw I get this error: import qiskit from qiskit import * from...

Github pytest Action failing to import from tests/ folder

I have a GitHub action setup to run pytest. This worked a month or so ago, but now suddenly I get the following error: ==================================== ERRORS...

Can I change the byte ordering from little endian to big endian in qiskit?

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 & 0 & 1 &...

QISKIT error - numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

I ran this from qiskit import QuantumCircuit, execute, Aer from qiskit.visualization import plot_histogram and got the below...

How to solve TSP problem with more than 3 nodes in the tutorial of Max-Cut and Traveling Salesman Problem Qiskit 0.24.0?

I had to try the example of qiskit’s Traveling Salesman Problem with 3 nodes and executing it at IBM backend called simulator_statevector.Can execute and get the result normally. But when...

AttributeError: 'QuantumCircuit' object has no attribute 'config'

I am working on a program for Qiskit, but I am getting a strange error (one that I have not gotten in the past) when I try to simulate a circuit. Here is a minimal example producing the...

Observe the expectation values of seperate qubits in OpflowQNN (Qiskit machine learning)

I create an instance of a OpflowQNN with the following: qnn = OpflowQNN(operator=~StateFn(Z ^ Z ^ I ^ I) @ StateFn(circuit), input_params=input_params, ...

Why do I get an import error when importing Qiskit?

Whenever I import qiskit, I get the following error. Anyone know why? ImportError: dlopen(/opt/anaconda3/lib/python3.8/site-packages/tweedledum/_tweedledum.cpython-38-darwin.so, 2): Symbol not...

Qiskit: mpl drawer module

I started using Qiskit with their official tutorial (Sezon 1) and I got a few bugs with the same code, at the beginning I just had to install pylatexenc but then I had "module 'qiskit.circuit' has...