Inference SRV functions
Generation
get_all_srvs
get_all_srvs (num_of_qubits)
generate_srv_tensors
generate_srv_tensors (pipeline, prompt, samples, system_size, num_of_qubits, max_gates, g, no_bar=True, unique=False, auto_batch_size=512)
Convertion
convert_tensors_to_srvs
convert_tensors_to_srvs (out_tensor, gate_pool, sort_srv=False, place_barrier=False, n_jobs=1)
Accuracy
get_srv_accuracy
get_srv_accuracy (srv_list, target_srv)
Tests
true_sample_bin_dist
true_sample_bin_dist (samples_per_bin, bin_size)
test_srv_clr_distribution_bin_samples
test_srv_clr_distribution_bin_samples (pipeline, samples_per_bin, system_size, num_of_qubits, max_gates, g, gate_pool, silent=False, device='cpu', U=None, prompt_mod:<built- infunctioncallable>=<function <lambda>>, only_diag=False, n_jobs=1)
test_srv_clr_distribution
test_srv_clr_distribution (pipeline, samples_per_srv, system_size, num_of_qubits, max_gates, g, gate_pool, silent=False, device='cpu', U=None, prompt_mod:<built- infunctioncallable>=<function <lambda>>, dist_srvs=None, cond_srvs=None, only_diag=False, n_jobs=1)
test_guidance_dep
test_guidance_dep (pipeline, srvs, samples, system_size, num_of_qubits, max_gates, gs, gate_pool, prompt_mod:<built- infunctioncallable>=<function <lambda>>, U=None, n_jobs=1)
test_srv_acc_vs_length
test_srv_acc_vs_length (pipeline, samples, system_size, num_of_qubits, max_gates, g, gate_pool, prompt_mod:<built- infunctioncallable>=<function <lambda>>, U=None, n_jobs=1)
test_srv_acc_vs_maxLength
test_srv_acc_vs_maxLength (pipeline, samples_per_bin, system_size, num_of_qubits, max_gates_list, g, gate_pool, prompt_mod:<built- infunctioncallable>=<function <lambda>>, U=None, n_jobs=1)
test_srv_length_distribution
test_srv_length_distribution (pipeline, samples_per_bin, system_size, num_of_qubits, max_gates, g, gate_pool, silent=False, U=None, prompt_mod:<built- infunctioncallable>=<function <lambda>>, n_jobs=1)
Plot
plot_srv_clr_distribution_hist
plot_srv_clr_distribution_hist (values, samples, num_of_qubits, save=False, dist_srvs=None, cond_srvs=None)
plot_srv_clr_distribution_bin_accuracy
plot_srv_clr_distribution_bin_accuracy (values, samples, num_of_qubits, save=False, plot_percentages=False, trainSet_srv=None)
plot_guidance_dep
plot_guidance_dep (srvs, gs, guidance_dep_out, samples, save=False)
plot_srv_acc_vs_length
plot_srv_acc_vs_length (ent_ls, ent_accs, ent_cnts, ent_labels, samples, plot_dist=True, save=False)
plot_srv_acc_vs_maxLength
plot_srv_acc_vs_maxLength (ent_accs, ent_labels, max_gates_list, samples, plot_dist=True, save=False)