qermit.measurement_reduction¶
- qermit.taskgraph.measurement_reduction.measurement_reduction_task_gen(strategy, method, cx_config)[source]¶
Uses measurement reduction techniques available in the pytket.partition module to reduce the number of measurement circuits required to measure all expectations for an observable.
- Parameters:
strategy (
PauliPartitionStrat
) – Measurement reduction strategy used in measurement_reduction methodmethod (
GraphColourMethod
) – Graph colouring method used in measurement_reduction methodcx_config (
CXConfigType
) – Configuration of CX gates for diagonlisation methods.
- Return type:
- Returns:
MitTask object, taking and return same write type, but with added measurement circuits to ObservableTracker.