qat.mps
qat.mps
includes all the necessary tools for simulating quantum states using matrix-product representations. We provide QPUs
for both matrix product states (MPS) simulations for noiseless systems, as well as matrix product operator (MPO) simulations for
noisy systems. We also provide lower level tools for computing and using your own MPS and MPO.
Computing tensor networks
Compute an MPO for a given quantum circuit |
|
Compute an MPS for a given quantum circuit |
Tensor network methods for MPO
Contract a quantum state in MPO representation back to its density matrix representation |
|
Compute the expectation value of an observable on the MPO |
|
Check memory usage of the MPO |
|
Load an MPO from a file |
|
Sample an MPO probability for a given bitstring |
|
Save an MPO as a file |
|
Compute the trace of the MPO |
Tensor network methods for MPS
Contract a quantum state in MPS representation back to its statevector representation |
|
Compute the expectation value of an observable on the MPS |
|
Check memory usage of the MPS |
|
Load an MPS from a file |
|
Compute the norm of the MPS |
|
Sample an MPS probability for a given bitstring |
|
Save an MPS as a file |
Tools for random circuit studies
Generate random circuit Program used by Cheng et al. (2021) |
|
Generate a random circuit with 2 qubits Haar-random generated gates |
|
Generate Haar-random quantum gate of given arity |
|
Generate a random observable |