Utilities#
Perform measurement on a list of QuantumVariables. |
|
Perform batched measurement on a list of QuantumVariables. |
|
Decorator to bundle up the quantum instructions of a function into a single gate object. |
|
Adds a custom control behavior to a function. |
|
Decorator that indicates that a function is |
|
Redirects a quantum function to a new target qubit. |
|
Decorator that converts a function returning a phase into a diagonal Hamiltonian. |
|
Locks a list of qubits, implying an error will be raised if the user tries to perform any operation involving these qubits. |
|
Locks a list of qubits such that only permeable gates can be executed on these qubits. |
|
Context manager that permanently locks a list of qubits, preventing them from being used for automatic allocation. |
|
Reverses |
|
Returns the T-depth of a given operation. |
|
Returns the CNOT-depth of a given operation. |
|
Tests if an inplace adder is working correctly. |