qiskit_qec.utils.pauli_repΒΆ
N-qubit Pauli Representation Encodings and Conversion Module
Functions
|
Converts a array of boolean values into a index numpy array of non-zero-elements |
|
Converts the input phase exponent of a Pauli operator encoded in the input_pauli_encoding into the phase exponent of the same Pauli operator encoded in the output_pauli_encoding. |
|
Converts the complex number(s) to strings |
|
Converts complex phases to encoded exponents for Pauli group phases |
|
Converts complex Pauli group phases into strings representing phase exponents |
|
Converts the complex number defined by the input string(s) to a complex number |
|
Converts strings representing a complex pauli grioup phase to an encoded phase. |
|
Converts a complex string represnetation into a exponent string representation. |
|
Returns how a string(s) representing a phase(s) are encoded |
|
Returns how a string representing a Pauli tensor without a phase component is encoded. |
|
Converts a encoded phase(s) to a complex number(s) |
|
Converts encoded Pauli groups phases into strings that represent the associated complex numbers |
|
Convert between the different phase exponents of encoded phase |
|
Converts encoded phases (exponents) to their string representations |
|
Converts strings representing phase exponents to complex numbers |
|
Converts a string(s) representing a phase exponent into a string representing the equivalent complex number. |
|
Converts string representations of phase encoded phases to encoded phases |
|
Convert array and phase_exp to the matrix and phase_exp in BasePauli's internal Pauli encoding (pauli_rep.INTERNAL_PAULI_ENCODING) :type matrix: |
|
Convert split array (separate X and Z arrays) and phase_exp to the matrix and phase_exp in BasePauli's internal Pauli encoding (pauli_rep.INTERNAL_PAULI_ENCODING) |
|
Converts a Pauli gate to a symplectic matrix with phase |
|
Returns the available Pauli encodings |
|
Returns the phase encodeing part of the Pauli encoding string |
|
Returns the availble phase encodings |
|
Returns the tensor encodeing part of the Pauli encoding string |
|
Returns the available tensor encodings |
|
Converts an array/list of indices to a numpy boolean vector |
|
Determines if a given input is an encoded phase exponent of a Pauli operator |
|
Deteremines if an obj is a scalar or not (i.e. not an array of some sort). |
|
Convert a ScalarOp to symplectic representation with phase. |
|
Splits up a string reprenting a Pauli operator into the phase part and the Pauli part. |
|
Splits the Pauli encoding into the phase and tensor encodings |
|
Squeeze an numpy array with the option to convert a resulting 0d array to a scalar (scalar=True) |
|
Standardize the phase string |
|
Converts string representations of a Pauli group phases to and encoded phase exponents |
|
Converts between different string representations of Pauli operators |
|
Converts strings of Pauli group elements into phase exponents and their symplectic matrix representation. |
|
Converts a symplectic matrix and phase to string representations |
|
Return the complex matrix representation from its symplectic representation with phase. |