quiche.simulation#
Logic for the QuEST simulation backend of QUICHE.
Routines#
Objects to construct and lazily evaluate QuEST simulations.
Phase estimation#
Wrappers for phase estimation methods in the QuEST backend.
- getPhaseKitaevQDRIFT(qureg, hamiltonian, ancilla_index, reps, time, num_bits, seed)#
Execute Kitaev phase estimation with QDRIFT.
- Return type:
- getPhaseKitaevTrotter(qureg, hamiltonian, ancilla_index, order, reps, time, num_bits)#
Execute Kitaev phase estimation with Trotterisation.
- Return type:
- getPhaseTextbookQDRIFT(qureg, hamiltonian, ancillas, reps, time, seed)#
Execute Textbook phase estimation with QDRIFT.
- Return type:
- getPhaseTextbookTrotter(qureg, hamiltonian, ancillas, order, reps, time)#
Execute Textbook phase estimation with Trotterisation.
- Return type:
State preparation#
State preparation methods for the simulation backend.
- initHartreeFockStateBK(qureg, num_electrons, num_qubits)#
Initialise a Qureg to the HF state in the Bravyi-Kitaev mapping.
- initHartreeFockStateJW(qureg, num_electrons)#
Initialise a Qureg to the HF state in the Jordan-Wigner mapping.
- initHartreeFockStateParity(qureg, num_electrons, num_qubits)#
Initialise a Qureg to the HF state in the parity mapping.