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 NameError: name 'q0' is not defined

I wrote the following code to implement the Grover's algorithm using 3-qubits. from qiskit import* from qiskit.tools.visualization import* list = [q0,q1,q2] def ccz(qci,q0,q1,q2): qci.h(q2) qci.ccx(q0,q1,q2) qci.h(q2) def…
Makoto Nakai
  • 61
  • 2
  • 8
0
votes
2 answers

Jupyter notebook always gives BrokenProcessPool error while executing qiskit code

defining function for toffoli gate: def toffoli(qc,i1,i2,i3): qc.h(i3) qc.cx(i2,i3) qc.tdg(i3) qc.cx(i1,i3) qc.t(i3) qc.cx(i2,i3) qc.tdg(i3) qc.cx(i1,i3) qc.t(i3) qc.tdg(i2) qc.cx(i1,i2) qc.h(i3) qc.tdg(i2) qc.cx(i1,i2) qc.t(i1) qc.s(i2) …
0
votes
1 answer

IBM QISKit local simulator error, can't find gcc

When I want to run the Bell example code from qiskit.org in macOS terminal it throws this error: ERROR:qiskit.backends.local.qasm_simulator_cpp:ERROR: Simulator encountered a runtime error: dyld: Library not loaded:…
Gábor
  • 3
  • 1
0
votes
1 answer

QISKit Implementation of the Cuccaro Adder

I'm new to quantum computing and am trying to codify a 2bit Cuccaro et all adder as described here: https://arxiv.org/pdf/quant-ph/0410184.pdf and here: https://arxiv.org/pdf/1202.6614.pdf. (I got the links from the Full Users Guide). I am having…
kaoao
  • 11
  • 4
-1
votes
1 answer

AttributeError: can't set attribute in qiskit Grover Algorithm

Here is my code def gen_grover(width): oracle = QuantumCircuit(width, name='q') oracle.z(width-1) full_circuit = GroverOperator(oracle, insert_barriers=False, name='q') full_circuit = dag_to_circuit(circuit_to_dag(full_circuit)) …
-1
votes
1 answer

AWS braket python sdk: user is not authorized to perform on quantum device

I have installed boto3, aws cli, and python-braket-sdk. I have run aws configure, and config with my IAM user. My IAM user isn't root user, but it has AdministratorAccess, AmazonBraketFullAccess, AmazonBraketJobsExecutionPolicy policies. But if I…
voxter
  • 853
  • 2
  • 14
  • 30
-1
votes
1 answer

Quantum Neural Networks - Noise Models

Surveying the QML module in Qiskit for a quantum neural network project and wondering if there is support to add noise models and run noisy simulations? Going through this tutorial and wondering how one would define a noise model in the argument of…
-1
votes
1 answer

How can I import numpy correctly?

I am using qiskit (I am an absolute beginner with some experience with Java and know basic python) but when I tried to run an example code which uses numpy it gave me this error. I tried reinstalling it but it gave me the same error. I have tried…
invalidexplorer
  • 11
  • 1
  • 1
  • 4
-1
votes
1 answer

Is current information about readout-errors of qubits on IBM quantum devices available on some internet page?

I've used to check the readout errors on subpage of https://quantumexperience.ng.bluemix.net, but with the new IBM Q Experience version it's no longer possible, as new composer page doesn't have this information. I'm perfectly aware that there are…
-1
votes
1 answer

Why python doesn't see the members of quantumCircuit class qiskit

I`m trying to learn the programming on quantum computers. I have installed qiskit in VS Code (all qiskit extentions available in VS Code market) , python compilator (from Vs Code market "Python" and "Python for VSCode"). I have set up my qikit API…
v0rt3x
  • 83
  • 1
  • 6
-5
votes
1 answer

Why am I getting this Qiskit Error code: 'qr' not defined?

Qiskit error code 'qr' not defined It should be defined I expect. It may be the difference in the version of software on the video I watched vs my software. I tried 'import qiskit' and it still gave me the error code. I'm not sure but I'm just…
1 2 3
15
16