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

Qiskit Matplotlib Drawings have incorrect shapes

I've been implementing various transpilation algorithms such as SABRE and I've come across a strange thing (that's potentially an issue) when drawing the circuits as mpl in a Jupyter notebook. When I draw the original circuit, it looks normal: When…
0
votes
0 answers

Boolean N-SAT compatibility issue

So I'm following the steps that are described in this web page: https://qiskit.org/textbook/ch-applications/satisfiability-grover.html to solve other SAT problems using qiskit... everything was going as described, until I reach this part: …
0
votes
1 answer

How to read the plot of Quantum Kernel?

Recently I have train a 8 qubit Quantum kernel for the 16 dimision dataset through qiskit , The quantum kernel successfully calculated the value of SVC after gradient optimization, but when I drew the graph of the quantumkernel, I found that my…
0
votes
0 answers

Qiskit QAOA compile error , EvolvedOp object has no attribute 'broadcast_arguments

Nowadays, I am studying quantum computing. when I did follow this code, I got an error. I don't know why I got this error. I just searched to solve this problem. In the below, the MinimumEigenOptimizer.solve() input is…
0
votes
1 answer

DQCPError: The problem is not DQCP. while implementing a QSVM in IBM Quantum Experience

I was trying to execute the following code in IBM QE (implementing a QSVM based classifier) feature_dim = 2 feature_map = ZZFeatureMap(feature_dimension=feature_dim, reps=2, entanglement='linear') qsvm = QSVM(feature_map, training_input,…
0
votes
1 answer

Can't import qiskit.aqua in IBM quantum experience

I am getting this error on IBM quantum experience and am not sure why
ben
  • 11
0
votes
1 answer

How can I code for an anticontrol U1 gate in qiskit? There are references for anticontrol X but no U gate

Some of them use https://github.com/Qiskit/qiskit-terra/blob/3b3536bcdb83124d49723dd205573f169c82ea9c/qiskit/circuit/add_control.py#L24 this code to implement the anticontrol X gate
0
votes
1 answer

DLL load failed while importing _tweedledum

I need to use Qiskit library, but I have issue with importing qiskit itself. I have Python 3.8.10 installed on Windiws 10 While I run import, I have follow error: c:\repos\quantml>py -0 Installed Pythons found by py Launcher for Windows -3.8-64…
Olga Pshenichnikova
  • 1,509
  • 4
  • 22
  • 47
0
votes
1 answer

plot_histogram(result.get_counts()) error in qiskit

I tried every way to solve it, but it still does not work .enter image description here
S Hp
  • 1
0
votes
0 answers

pip not installing requirements for a project on test PyPi

I have recently uploaded a python package to Test PyPI following this tutorial. When I try to use the command pip install -i https://test.pypi.org/simple/ qiskit-trebugger for installing my project, only the project is installed, not its…
0
votes
1 answer

H5py Driver Issue on Qiskit Nature Drivers

While using the IBM Quantum experience, whenever I want to install any driver an error with the h5py appears. Specifically, the error is "Using default_file_mode other than 'r' is no longer supported. Pass the mode to h5py.File() instead." Does…
0
votes
1 answer

Qisikit Statevector of Quantum Teleportation Circuit

from qiskit.quantum_info import random_statevector, Statevector from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit.visualization import plot_histogram, plot_bloch_multivector, array_to_latex from qiskit.extensions…
0
votes
1 answer

Install IBM Qiskit for quantum computer simulation

I am having trouble uploading qiskit to my Ananconda3 environment. I follow these steps without any problem. In Anaconda3 shell conda create -n ENV_NAME python=3 conda activate ENV_NAME pip install qiskit pip install qiskit[visualization] When I…
jeffreagan
  • 21
  • 1
0
votes
1 answer

Getting Grammarinator to work with openqasm3 grammar

I've been trying to get grammarinator to generate random test programs based on the openQasm3.0 grammar (https://github.com/Qiskit/openqasm/blob/master/source/grammar/qasm3.g4), What I want to get is: qasm3.g4 -> Antlr4py3 -> *.g4 files ->…
Ming
  • 55
  • 4
0
votes
1 answer

qiskit install error Command errored out with exit status 1:

I was installing qiskit with python 3.10 using pip install qiskit I had this error message then retried to reinstall dependencies starting from scipy. ERROR: Command errored out with exit status 1: 'C:\Users\V\Anaconda3\envs\quantum\python.exe' -u…