Utilities
qiskit.aqua.utils
Various utility functionality…
Utilities
tensorproduct | Calculate tensor product. |
random_unitary | Generate a random unitary matrix with size NxN. |
random_h2_body | Generate a random two body integrals. |
random_h1_body | Generate a random one body integrals. |
random_hermitian | Generate random hermitian (sparse) matrix with given properties. |
random_non_hermitian | Generate random (sparse) matrix with given properties (singular values). |
decimal_to_binary | decimal to binary |
summarize_circuits | Summarize circuits based on QuantumCircuit, and five metrics are summarized. |
get_subsystem_density_matrix | Compute the reduced density matrix of a quantum subsystem. |
get_subsystems_counts | Extract all subsystems’ counts from the single complete system count dictionary. |
get_entangler_map | Utility method to get an entangler map among qubits. |
validate_entangler_map | Validate a user supplied entangler map and converts entries to ints. |
get_feature_dimension | Check feature dimension of a given dataset |
get_num_classes | Check number of classes in a given dataset |
split_dataset_to_data_and_labels | Split dataset to data and labels numpy array |
map_label_to_class_name | Helper converts labels (numeric) to class name (string) |
reduce_dim_to_via_pca | Reduce the data dimension via pca |
optimize_svm | Solving quadratic programming problem for SVM; thus, some constraints are fixed. |
CircuitFactory | Base class for CircuitFactories |
has_ibmq | Check if IBMQ is installed |
has_aer | check if Aer is installed |
name_args | Decorator to convert unnamed arguments to named ones. |
Was this page helpful?
Report a bug or request content on GitHub.