mindquantum.algorithm.library

Circuit library.

mindquantum.algorithm.library.amplitude_encoder

Quantum circuit for amplitude encoding.

mindquantum.algorithm.library.bitphaseflip_operator

Generate a circuit that can flip the sign of any calculation bases.

mindquantum.algorithm.library.general_ghz_state

Circuit that prepare a general GHZ State based on zero state.

mindquantum.algorithm.library.general_w_state

General W State.

mindquantum.algorithm.library.mat_to_op

Convert a matrix to a QubitOperator.

mindquantum.algorithm.library.qft

Quantum fourier transform (QFT).

mindquantum.algorithm.library.qjpeg

Construct the circuit for compressing quantum figure with the QJPEG algorithm.

mindquantum.algorithm.library.qudit_symmetric_decoding

Qudit symmetric decoding, decodes a qubit symmetric state or matrix into a qudit state or matrix.

mindquantum.algorithm.library.qudit_symmetric_encoding

Qudit symmetric encoding, encodes a qudit state or matrix into a qubit symmetric state or matrix.

mindquantum.algorithm.library.qutrit_symmetric_ansatz

Construct a qubit ansatz that preserves the symmetry of encoding for arbitrary qutrit gate.