spheres.spin_circuits.pytket.tomography_circuits_pytket

spheres.spin_circuits.pytket.tomography_circuits_pytket(circuit, on_qubits=None)[source]

Given a pytket circuit and a list of qubits, constructs a set of circuits that implement tomography on those qubits.

Parameters
  • circuit (pytket.Circuit) –

  • on_qubits (list) – If not provided, tomography performed on all qubits.

Returns

tomography_circuit_info

List of tomography circuits. Each element is a dictionary:
  • ”circuit”: Pytket circuit

  • ”pauli”: Pauli string corresponding to circuit

  • ”tomog_bits”: Pytket register.

Return type

list