quiche.dispatch#

Methods and structures for dispatching to the resource and simulation backends.

Specifications#

Structures to define and dispatch phase estimation calculations.

class QPESpec(hamiltonian, state_prep, algorithm, simulation, error_budget, seed=None, extras=<factory>)#

QPE calculation specification for simulation and resource estimates.

get_composite_bloq()#

Estimate resources for the calculation using the qualtran backend.

Return type:

CompositeBloq

to_quest()#

Generate a QuEST simulation implementing the specified calculation.

Return type:

SimulationRoutine

Error budgets#

Methods to determine routine parameters according to error budgets.

Phase estimation parameters#

Methods for determining phase estimation parameters from error budgets.

get_textbook_qpe_ancillas(e)#

Get the number of ancillas required for Textbook QPE.

Return type:

int

get_kitaev_qpe_rounds(e)#

Get the number of rounds for Kitaev single-ancilla QPE.

Return type:

int

Hamiltonian simulation parameters#

Methods for determining Hamiltonian simulation parameters from error budgets.

get_simulation_time(paulis)#

Get the simulation time required for correct period in Trotter methods.

Return type:

float

get_qdrift_params(paulis, errors)#

Get the QDRIFT settings to simulate a given PauliSum within a set Error.

Return type:

tuple[float, int]

get_trotter_params(paulis, errors)#

Get the Trotter settings to simulate a given PauliSum within a set Error.

Return type:

tuple[float, int, int]

get_qubitisation_ancillas(paulis, errors)#

Get the Qubitisation settings to simulate a given PauliSum within a set Error.

Return type:

tuple[int, int]