mindquantum.utils
Utils.
Function
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. |
|
Randomly insert given numbers of single-qubit gates into a quantum circuit. |
Progress bar
A progress bar of task with single level for loop. |
|
A progress bar of task with two level for loops. |