Skip to main content
3 votes
Accepted

generate_preset_pass_manager and Sampler API usage in IBM-Qiskit

As far as I can tell, your code is the correct way to run a Qiskit >= 1.0 program. The philosophy Qiskit wants to enforce is that of Qiskit patterns: So, this part of your code corresponds to the ...
Tristan Nemoz's user avatar
  • 7,022
3 votes
Accepted

What exacly is passManager and passes in qiskit?

passManager allows us to manage and schedule the execution of transpiler passes on quantum circuits. Transpiler passes are transformations or optimizations applied ...
MonteNero's user avatar
  • 2,908
2 votes

qiskit DraperQFTAdder

By default, DraperQFTAdder performs addition modulo $2^n$ where $n$ is the number of state qubits (in your case $n = 3$.) It stores the summation in the qubits used ...
Egretta.Thula's user avatar
2 votes
Accepted

ModuleNotFoundError: No module named 'qiskit_algorithms'

The algorithms were moved out of qiskit into their own separate repository, and their use deprecated from qiskit and removed in 1.0 release. There is a migration ...
Steve Wood's user avatar
  • 1,553
2 votes

Computing expectation of a SparsePauliOp using StateVector

You can use Statevector.expectation_value() method as follows: ...
Egretta.Thula's user avatar
1 vote

How to implement Pauli Twirling error mitigation technique in qiskit?

Pauli twirling is one of error mitigation techniques supported by Qiskit runtime. You can use it with Qiskit primitives as follows: ...
Egretta.Thula's user avatar
1 vote

Modular addition in Qiskit

You're trying to build an oracle, which appears in Deustch-Jorza and Simon's Algorithm. Am I right? I'm not sure whether any linear function can be expressed in quantum circuit. But bijective ...
Lexiang Xue's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible