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

ad_hoc_data(...) resulting in test_input as an array instead of a dictionary

qiskit version : 0.18.0 numpy version : 1.21.1 qiskit_machine_learning version : 0.2.0 qiskit.aqua version : 0.9.4 I am trying to run a simple code as described in Qiskit's tutorial on Machine…
shaw1801
  • 11
  • 2
1
vote
0 answers

Getting a Symbol not found error while importing a python module

I'm trying to import a python module called qiskit, but whenever I do, I get the following error: ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tweedledum/_tweedledum.cpython-38-darwin.so, 2):…
A. Fattal
  • 77
  • 3
1
vote
1 answer

Can I get statevector of the experiment result while working with IBM Computers?

I know that working with Aer.get_backend("statevector_simulator") gives me a statevector. I am trying to get the statevector when I worked with the IBM's quantum computers. To explain in the codes; From the code below I can reach the…
1
vote
1 answer

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, weight_params=weights, …
majoran
  • 21
  • 3
1
vote
1 answer

Why does drawing a qiskit quantum circuit look different when I run a jupyter notebook locally

I'm using the qiskit textbook, and it creates a QuantumCircuit and then draws the circuit, and it looks like this: I see the same result when running the textbook as a jupyter notebook in IBM's quantum lab. However, when I download the textbook as…
RustyToms
  • 7,600
  • 1
  • 27
  • 36
1
vote
2 answers

Error installing Quipper - cannot build quipper-utils-0.9.0.0 (Couldn't match type 'Maybe TH.Exp' with 'TH.Exp')

Trying to install Quipper (quantum programming language for Haskell), it throws a compilation error: My build profile: -w ghc-9.0.1 -O1 Preprocessing library for quipper-utils-0.9.0.0.. Building library for quipper-utils-0.9.0.0.. ... [11 of 15]…
1
vote
1 answer

Where was Qiskit-Textbook downloaded?

I've installed Qiskit-textbook by pip install git+https://github.com/qiskit-community/qiskit-textbook.git#subdirectory=qiskit-textbook-src. But I don't know where is it downloaded
1
vote
1 answer

How to do a zipped SWAP in Qiskit?

I have a circuit with two registers, m, and q. from qiskit import execute, Aer, IBMQ, QuantumCircuit m = QuantumRegister(3, "m") q = QuantumRegister(3, "q") cl = ClassicalRegister(2, "cl") circ = QuantumCircuit( m, q,cl) circ.x([q[0],q[1],q[2]])…
26118in
  • 111
  • 2
1
vote
2 answers

installing requirements-dev.txt from Qiskit raises an error with SQNomad

I am trying to install the following requirements with…
1
vote
0 answers

qubit/cbit arguments does not match gate expectation

I am trying to use the code tutorials/finance/09_credit_risk_analysis.html for 3 assets. Face problem in running line 13: # define the registers for convenience and readability. The error: ---> state_preparation.append(agg.to_gate(), qr_state[:] +…
Aryabhat
  • 11
  • 3
1
vote
1 answer

IBM quantum simulators run on cloud or locally?

Do qiskit simulators run locally or on IBM cloud servers? It seems that each time I have used them, my computer goes into max CPU, and sometimes the simulation runs out of memory, exiting with out of memory error message.
creet
  • 13
  • 4
1
vote
1 answer

ValueError: numpy.ndarray size changed on importing qiskit

While trying to run the following commands on Jupyter from qiskit import QuantumCircuit, Aer, BasicAer, execute from qiskit.visualization import plot_histogram I am encountering the following error.I am using python 3.8. Does anyone have any idea…
Osama Younus
  • 115
  • 1
  • 8
1
vote
1 answer

Failed Qiskit installation with Anaconda on Windows

I'm attempting to install Qiskit via pip and Anaconda on my machine. Here's my process 1.) Install Anaconda 2.) Open Anaconda 3 prompt 3.) Create a virtual environment using conda create -n python=3 command (I've created the…
1
vote
0 answers

Usage of Tensorflow to train Qiskit circuits

In order to explore whether it is possible to train a Qiskit Quantum circuit with tensorflow I built a small toy model. The purpose of this toy model is to find via tensorflow the correct angle to get "zero" output independent of the input. import…
1
vote
0 answers

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 instructions at…
davypough
  • 1,847
  • 11
  • 21