About 88 results
Open links in new tab
  1. Calculate expectation value using Qiskit Simulator and Estimator

    Feb 24, 2025 · Thanks! I got another question. Here the observable is XXX so the order of each pauli operator doesn't really matter. Suppose the observable is XXI, and we get the result from qiskit …

  2. programming - How does the c_if instruction work in Qiskit?

    Sep 1, 2022 · The c_if instruction can be used to make the result of a measurement saved to a classical register adjust whether a gate is or is not performed. How does the c_if instruction obtain the …

  3. PYTHON: Qiskit library import - Stack Overflow

    Apr 10, 2024 · I'm trying to implement old code on qiskit whose imports start with from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit from qiskit import BasicAer, execute from …

  4. Unable to import execute function from qiskit library

    The issue was due to qiskit 1.0 removing execute from its library and I had to downgrade to version 0.46 version. I appreciate your input!

  5. Problem with importing some packages in qiskit

    Oct 11, 2024 · I'm a beginner in Quantum computing and I aim to use Qiskit for quantum chemistry calculations (using VQE algorithm). I have a question about importing and would be so grateful for …

  6. Qiskit Transpiler for quantum circuits - Stack Overflow

    In Qiskit there is the transpile() function (see documentation). My understanding of a transpiler is best described as a way of converting one set of gate operations to another set of gate operatio...

  7. Qiskit | ImportError: cannot import name 'Aer' from 'qiskit'

    Apr 8, 2024 · While installing and tried to import Aer, I get an error. !pip install qiskit import numpy as np from qiskit import QuantumCircuit, Aer, transpile, assemble from ...

  8. Qiskit: measure_all() or measure() - Quantum Computing Stack Exchange

    Dec 13, 2022 · Qiskit has qiskit.circuit.QuantumCircuit.measure_all() and qiskit.circuit.QuantumCircuit.measure(). Why would you use one over another?

  9. How to install the qiskit packages and libraries?

    Feb 1, 2024 · We are doing a Quantum computing project using the Qiskit toolkit. But we are struggling to import or install the packages and libraries. In Qiskit how we can import the libraries and packages?

  10. How do you import the name ‘Aer’ from qiskit?

    Jul 15, 2024 · I ran this code on Jupyter Notebook: from qiskit import QuantumCircuit, Aer, execute from math import sqrt qc = QuantumCircuit (2) simulator = Aer.get_backend ('statevector_simulator') …