Skip to main content
Ctrl+K

TQECD documentation

  • Introduction
  • User Guide
  • Contributor Guide
  • API Reference
  • GitHub
  • Google Group
  • Introduction
  • User Guide
  • Contributor Guide
  • API Reference
  • GitHub
  • Google Group

Section Navigation

  • tqecd
    • tqecd.boundary
      • tqecd.boundary.manhattan_distance
      • tqecd.boundary.BoundaryStabilizer
    • tqecd.construction
      • tqecd.construction.annotate_detectors_automatically
      • tqecd.construction.compile_fragments_to_circuit
      • tqecd.construction.compile_fragments_to_circuit_with_detectors
    • tqecd.exceptions
      • tqecd.exceptions.TQECDException
      • tqecd.exceptions.TQECDWarning
    • tqecd.flow
      • tqecd.flow.build_flows_from_fragments
      • tqecd.flow.FragmentFlows
      • tqecd.flow.FragmentLoopFlows
    • tqecd.fragment
      • tqecd.fragment.split_stim_circuit_into_fragments
      • tqecd.fragment.Fragment
      • tqecd.fragment.FragmentLoop
    • tqecd.match
      • tqecd.match.match_boundary_stabilizers
      • tqecd.match.match_detectors_from_flows_shallow
      • tqecd.match.match_detectors_within_fragment
      • tqecd.match.MatchedDetector
    • tqecd.match_utils
      • tqecd.match_utils.cover
        • tqecd.match_utils.cover.find_commuting_cover_on_target_qubits_sat
        • tqecd.match_utils.cover.find_cover
        • tqecd.match_utils.cover.find_exact_cover_sat
      • tqecd.match_utils.sat
        • tqecd.match_utils.sat.encode_pauli_string_commuting_cover_sat_problem_in_solver
        • tqecd.match_utils.sat.encode_pauli_string_exact_cover_sat_problem_in_solver
    • tqecd.measurement
      • tqecd.measurement.get_relative_measurement_index
      • tqecd.measurement.RelativeMeasurementLocation
    • tqecd.pauli
      • tqecd.pauli.pauli_literal_to_bools
      • tqecd.pauli.pauli_product
      • tqecd.pauli.PauliString
    • tqecd.predicates
      • tqecd.predicates.does_not_contain_both_reset_and_measurement
      • tqecd.predicates.does_not_contain_combined_gates
      • tqecd.predicates.is_valid_input_circuit
    • tqecd.utils
      • tqecd.utils.collapse_pauli_strings_at_moment
      • tqecd.utils.detector_to_targets_tuple
      • tqecd.utils.has_circuit_repeat_block
      • tqecd.utils.has_combined_measurement_reset
      • tqecd.utils.has_computation_instruction
      • tqecd.utils.has_measurement
      • tqecd.utils.has_only_measurement_or_is_virtual
      • tqecd.utils.has_only_reset_or_is_virtual
      • tqecd.utils.has_reset
      • tqecd.utils.is_annotation
      • tqecd.utils.is_collapsing_instruction
      • tqecd.utils.is_combined_measurement_reset
      • tqecd.utils.is_measurement
      • tqecd.utils.is_noisy_gate
      • tqecd.utils.is_reset
      • tqecd.utils.is_virtual_instruction
      • tqecd.utils.is_virtual_moment
      • tqecd.utils.iter_stim_circuit_by_moments
      • tqecd.utils.pauli_string_mean_coords
      • tqecd.utils.push_all_detectors_to_the_end
      • tqecd.utils.remove_annotations
  • API Reference
  • tqecd
  • tqecd.boundary
  • tqecd.boundary.manhattan_distance

tqecd.boundary.manhattan_distance#

manhattan_distance(lhs: BoundaryStabilizer, rhs: BoundaryStabilizer, qubit_coordinates: dict[int, tuple[float, ...]]) → float[source]#

previous

tqecd.boundary

next

tqecd.boundary.BoundaryStabilizer

On this page
  • manhattan_distance()

This Page

  • Show Source

© Copyright 2024, TQEC Community.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.