QuaEC
latest
Pauli and Clifford Groups
Collections of Pauli Operators
Binary Symplectic Form
Stabilizer Codes
Circuit Manipulation and Simulation
Constraint Solvers
Predicates and Filters
Misc. Utility Functions and Classes
Matrix Manipulation
Exceptions and Warnings
Bibliography
QuaEC
Docs
»
Misc. Utility Functions and Classes
Edit on GitHub
Misc. Utility Functions and Classes
¶
Matrix Manipulation
¶
qecc.
directsum
(
A
,
B
)
[source]
¶
Given two matrices
and
with two indices each, returns the direct sum
.
Return type:
ndarray, shape (sA[0] + sB[0], sA[1] + sB[1])
Returns:
qecc.
parity
(
bitarray
)
[source]
¶
Parameters:
bitarray
(
list
) – a list containing integers of value 0 or 1.
Returns:
True if bitarray is of odd parity, False if it is of even parity.
Return type:
bool
Read the Docs
v: latest
Versions
latest
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.