mindquantum.utils#
Utils.
Function#
API Name |
Description |
|---|---|
Context manager for opening files with correct permissions. |
|
Get the ket format of the quantum state. |
|
Calculate the mod of input vectors. |
|
Normalize the input vectors based on specified axis. |
|
Generate a random circuit. |
|
Generate some random quantum state. |
|
Generate a random Pauli Hamiltonian. |
|
Randomly insert given numbers of single-qubit gates into a quantum circuit. |
Progress bar#
API Name |
Description |
|---|---|
A progress bar of task with single level for loop. |
|
A progress bar of task with two level for loops. |