pygsti.algorithms.randomcircuit

pygsti.algorithms.randomcircuit#

Random circuit sampling functions.

Functions

create_binary_rb_circuit(pspec, ...[, ...])

Generates a "binary randomized benchmarking" (BiRB) circuit.

create_clifford_rb_circuit(pspec, ...[, ...])

Generates a "Clifford randomized benchmarking" (CRB) circuit.

create_direct_rb_circuit(pspec, ...[, ...])

Generates a "direct randomized benchmarking" (DRB) circuit.

create_mirror_rb_circuit(pspec, ...[, ...])

Generates a "mirror randomized benchmarking" (MRB) circuit.

create_random_circuit(pspec, length[, ...])

Samples a random circuit of the specified length (or ~ twice this length).

create_random_germ(pspec, depths, ...[, ...])

TODO: docstring <TODO summary>

create_random_germpower_circuits(pspec, ...)

TODO: docstring <TODO summary>

create_random_germpower_mirror_circuits(...)

TODO: docstring length : consistent with RB length.

find_all_sets_of_compatible_two_q_gates(...)

TODO: docstring <TODO summary>

random_alternating_clifford_circ(pspec, depth)

Generates a random circuit with composite layers cponsisting of a layer of two-qubit gates followed by a layer of of single-qubit gates.

sample_circuit_layer_by_co2_q_gates(pspec, ...)

Samples a random circuit layer using the specified list of "compatible two-qubit gates" (co2_q_gates).

sample_circuit_layer_by_edgegrab(pspec[, ...])

TODO: docstring <TODO summary>

sample_circuit_layer_by_q_elimination(pspec)

Samples a random circuit layer by eliminating qubits one by one.

sample_circuit_layer_of_one_q_gates(pspec[, ...])

Samples a random circuit layer containing only 1-qubit gates.

sample_compiled_haar_random_one_qubit_gates_zxzxz_circuit(pspec)

TODO: docstring #generate layer of random unitaries and make a series of circuit layers with the compiled versions of these

sample_compiled_random_clifford_one_qubit_gates_zxzxz_circuit(pspec)

TODO: docstring #generate layer of random unitaries and make a series of circuit layers with the compiled versions of these

sample_haar_random_one_qubit_unitary_parameters()

TODO: docstring

sample_one_q_clifford_layer_as_compiled_circuit(...)

Samples a uniformly random layer of 1-qubit Cliffords.

sample_pauli_layer_as_compiled_circuit(...)

Samples a uniformly random n-qubit Pauli and converts it to the gate-set of pspec.

sample_random_clifford_one_qubit_unitary_parameters()

TODO: docstring

sample_random_cz_zxzxz_circuit(pspec, length)

TODO: docstring Generates a forward circuits with benchmark depth d for non-clifford mirror randomized benchmarking.