spheres.stabilization.pytket.eval_pytket_symmetrization_performance¶
-
spheres.stabilization.pytket.
eval_pytket_symmetrization_performance
(n_qubits=2, depth=3, n_copies=2, every=1, pairwise=True, noise_model=None, noise_model_name='', error_on_all=True, backend=None, shots=8000)[source]¶ Compares the performance of a random circuit with and without symmetrization.
- Parameters
n_qubits (int) – Number of qubits in the original circuit.
depth (int) – Number of layers in the original circuit.
n_copies (int) – Number of copies of original circuit to symmetrize over.
every (int) – How often to symmetrize.
pairwise (bool) – Whether to symmetrize across all circuit copies or just pairwise.
noise_model (func) – A function which takes (n_qubits, on_qubits) and returns a qiskit error model.
noise_model_name (str) – Name for the noise model.
error_on_all (bool) – Whether to apply noise to all qubits, including controls, or whether to exclude the controls.
backend (qiskit backend) –
shots (int) – Number of shots.
- Returns
experiment – Dictionary of information about the experiment run.
- Return type
dict