Utilities (qiskit.aqua.utils
)¶
Various utility functionality…
Utilities¶
Calculate tensor product. |
|
Generate a random unitary matrix with size NxN. |
|
Generate a random two body integrals. |
|
Generate a random one body integrals. |
|
Generate random hermitian (sparse) matrix with given properties. |
|
Generate random (sparse) matrix with given properties (singular values). |
|
decimal to binary |
|
Summarize circuits based on QuantumCircuit, and five metrics are summarized. |
|
Compute the reduced density matrix of a quantum subsystem. |
|
Extract all subsystems’ counts from the single complete system count dictionary. |
|
Utility method to get an entangler map among qubits. |
|
Validate a user supplied entangler map and converts entries to ints. |
|
Check feature dimension of a given dataset |
|
Check number of classes in a given dataset |
|
Split dataset to data and labels numpy array |
|
Helper converts labels (numeric) to class name (string) |
|
Reduce the data dimension via pca |
|
Solving quadratic programming problem for SVM; thus, some constraints are fixed. |
|
Base class for CircuitFactories |
|
Check if IBMQ is installed |
|
check if Aer is installed |