ffsim.qiskitΒΆ

Code that uses Qiskit

PRE_INIT

Pass manager recommended for the Qiskit transpiler pre_init stage.

DiagCoulombEvolutionJW(norb, mat, time, *[, ...])

Diagonal Coulomb evolution under the Jordan-Wigner transformation.

DiagCoulombEvolutionSpinlessJW(norb, mat, ...)

Spinless diagonal Coulomb evolution under the Jordan-Wigner transformation.

DropNegligible([atol])

Drop gates with negligible effects.

FfsimSampler(*[, default_shots, norb, ...])

Implementation of the Qiskit Sampler primitive backed by ffsim.

GivensAnsatzOpJW(givens_ansatz_op, *[, label])

Givens rotation ansatz operator under the Jordan-Wigner transformation.

GivensAnsatzOpSpinlessJW(givens_ansatz_op, *)

Spinless Givens rotation ansatz operator under the Jordan-Wigner transformation.

MergeOrbitalRotations(*args, **kwargs)

Merge consecutive orbital rotation gates.

NumNumAnsatzOpSpinBalancedJW(...[, label])

Spin-balanced number-number ansatz under the Jordan-Wigner transformation.

NumOpSumEvolutionJW(norb, coeffs, time, *[, ...])

Number operator sum evolution under the Jordan-Wigner transformation.

NumOpSumEvolutionSpinlessJW(norb, coeffs, ...)

Spinless number operator sum evolution under the Jordan-Wigner transformation.

OrbitalRotationJW(norb, orbital_rotation, *)

Orbital rotation under the Jordan-Wigner transformation.

OrbitalRotationSpinlessJW(norb, ...[, ...])

Orbital rotation under the Jordan-Wigner transformation, spinless version.

PrepareHartreeFockJW(norb, nelec[, label])

Gate that prepares the Hartree-Fock state (under JWT) from the all zeros state.

PrepareHartreeFockSpinlessJW(norb, nelec[, ...])

Prepare the Hartree-Fock state (under JWT) from the zero state, spinless.

PrepareSlaterDeterminantJW(norb, ...[, ...])

Gate that prepares a Slater determinant (under JWT) from the all zeros state.

PrepareSlaterDeterminantSpinlessJW(norb, ...)

Prepare a Slater determinant (under JWT) from the zero state, spinless version.

SimulateTrotterDiagCoulombSplitOpJW(...[, ...])

Split operator Trotter evolution of diagonal Coulomb Hamiltonian, Jordan-Wigner.

SimulateTrotterDoubleFactorizedJW(...[, ...])

Trotter time evolution of double-factorized Hamiltonian, Jordan-Wigner.

UCJOpSpinBalancedJW(ucj_op, *[, label])

Spin-balanced UCJ operator under the Jordan-Wigner transformation.

UCJOpSpinUnbalancedJW(ucj_op, *[, label])

Spin-unbalanced UCJ operator under the Jordan-Wigner transformation.

UCJOpSpinlessJW(ucj_op, *[, label])

Spinless UCJ operator under the Jordan-Wigner transformation.

ffsim_vec_to_qiskit_vec(vec, norb, nelec)

Convert an ffsim state vector to a Qiskit state vector.

final_state_vector(circuit[, norb, nelec])

Return the final state vector of a fermionic quantum circuit.

jordan_wigner(op[, norb, tol])

Jordan-Wigner transformation.

pre_init_passes()

Yield transpiler passes recommended for the Qiskit transpiler pre_init stage.

qiskit_vec_to_ffsim_vec(vec, norb, nelec)

Convert a Qiskit state vector to an ffsim state vector.