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
1 answer

Problems with launch qiskit

I have installed a Python 3.7.2, download anaconda and visual studio code. Install qiskit sdk 0.5.3, and qiskit for Python via pip install qiskit But when I launch my first test program from https://github.com/Qiskit/qiskit-terra I receieved a…
mitrik_bnr
  • 27
  • 6
1
vote
1 answer

qcircuit.sty not found when visualizing a QISKit quantum scheme

I followed this manual in order to visualize my QISKit v0.4.8 quantum circuit by means of the latex_drawer() function (in newer versions of QISKit the function is circuit_drawer()). However, I got the following error when running the code: ! LaTeX…
Alexander Pozdneev
  • 1,289
  • 1
  • 13
  • 31
1
vote
1 answer

Python Multiprocessing Error with IBM API (Q Experience)

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 copied that from a stackoverflow post so that may be…
1
vote
1 answer

configure qiskit on win10 error:numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

I’m new to python and I got some problem when trying to install QISKit. First, I was using pip install qiskit on cmd, but it showed an error numpy.distutils.system_info.NotFoundError: no lapack/blas resources found I searched on internet and pip…
Daria Pan
  • 11
  • 1
0
votes
1 answer

Credentials are already in use. The existing account in the session will be replaced

I have written this code, and I want to run it on IBM hardware using API_TOKEN. My code is showing this error. from qiskit import IBMQ # IBMQ.delete_account() IBMQ.save_account('API_TOKEN', overwrite=True) IBMQ.load_account() Showing error in the…
0
votes
1 answer

Keep receiving Error - AttributeError: 'QuantumCircuit' object has no attribute 'u3'

I am attempting to code a NOT gate on Qiskit and I keep receiving the error. I am not sure what to fix as I also want to run Quantum Battleships with partial NOT gates and it involves the same code. q = QuantumRegister(1) c = ClassicalRegister(1) qc…
0
votes
1 answer

issue encountered using Backend Estimator using providers from qiskit_braket_providers

I am carrying out a ground state estimation of a molecule via qiskit-nature workflows. As explained in qiskit documentation I define a VQE solver by means of a backend estimator that runs on a specific backend. Normally I use different backends…
0
votes
1 answer

Grovers algorithm for specific qubits

Is it possible to use Grover's algorithm on a particular register instead of all qubits? For example, if I have the superposition of 2 qubits and I'm looking to see if qubit 1 is present on the second qubit, can I apply Grover's algorithm to…
Mushahid Khan
  • 75
  • 1
  • 7
0
votes
1 answer

Unable to import Qiskit Aqua and terra Algorithm QSVM as per the documentation mentioned on Qiskit site

I am using google colab. I tried installing qiskit library using the following line !pip install qiskit i also tried this !pip install qiskit-aqua I am trying to work on quantum computing SVM model using the following line of code from…
0
votes
0 answers

Ansatz parameters not getting updated in custom QRNN model (qiskit)

I'm trying to develop a Hybrid-qRNN model to predict a cosine wave. For this, I'm passing 7 values of x(t) and the output is based on the 7th value's output. However, when I call loss.backward() on this predicted output vs the actual y value, the…
0
votes
0 answers

Computing gradients and hessian matrix of a VQC model in qiskit

I have been following the tutorial in the following url to set up a VQC: https://qiskit.org/ecosystem/machine-learning/tutorials/02_neural_network_classifier_and_regressor.html However, it is not obvious to me if one could compute the gradients and…
0
votes
0 answers

Plotting Superposition of Qubits on a Bloch Sphere in Qiskit

I've been trying to plot the state $\frac{|0>-|1>}{\sqrt{2}}$ using Qiskit. As a result, I need to apply the NOT gate on $|0>$ to get $|1>$ and then apply the Hadamard gate on $|1>$ to get the required state. Here's my code - from qiskit import…
0
votes
1 answer

Building Qiskit Aer from source generates Errors

I need MPI support along with GPU (GeForce GTX 1080 Ti, CUDA driver version is 11.4 and running version is 10.1) for which I have to build qiskit-aer from source. My python version is 3.8.16. I have done installing all requirements mentioned in…
aneela
  • 1,457
  • 3
  • 24
  • 45
0
votes
0 answers

Contextual Version Conflict

I'm trying to develop a qiskit noise model using pennylane-qiskit, but there seems to be some issue betwee the packages. Here is the code I'm running in my juptyer notebook. import qiskit import pennylane as qml import qiskit.providers.aer.noise as…
0
votes
0 answers

ValueError: y should be a 1d array, got an array of shape (100, 2) instead

i was trying to train SVC on same features i used to train VQC, but i am getting the error ValueError: y should be a 1d array, got an array of shape (100, 2) instead. when i try to fit SVC but this features works for VQC, why. can some expalain why…