qiskit_qec.linear.is_hyper_form

is_hyper_form(x, z)[source]

Do the input matrices form a hyperbolic/symplectic basis?

Parameters:
  • x (Union[list, ndarray]) – Pairs to test if they form a hyperbolic/symnplectic basis

  • z (Union[list, ndarray]) – Pairs to test if they form a hyperbolic/symnplectic basis

Return type:

bool

Returns:

True if input matrices form a hyperbolic/symplectic basis

Examples

>>> x = numpy.array([[1,0,0,0,],[0,1,0,0]], dtype=numpy.bool_)
>>> z = numpy.array([[0,0,1,0,],[0,0,0,1]], dtype=numpy.bool_)
>>> is_hyper_form(x,z)
True