spheres.spin_circuits.pytket

Pytket circuits for preparing spin-j states as permutation symmetric multiqubit states.

Functions

Rk_pytket(k[, dagger])

Single qubit operator employed in symmetrization circuit to prepare control qubits.

Tkj_pytket(k, j[, dagger])

Two qubit operator employed in symmetrization circuit to prepare control qubits.

postselect_shots(postselection_indices, …)

Given an array of shots data, postselects on certain bits having certain values.

spin_sym_pytket(spin)

Given a spin-j state, constructs a qiskit circuit which prepares that state as a permutation symmetric state of 2j qubits.

spin_tomography_pytket(circ_info[, backend, …])

Given a Pytket circuit preparing a spin state, runs tomography to reconstruct the density matrix.

tomography_circuits_pytket(circuit[, on_qubits])

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

tomography_dm_pytket(tomog_circs_info, …)

Given a set of Pytket tomography circuits and the results of measurements (shots), reconstructs the density matrix of the quantum state.