tests package

Contents

tests package#

Submodules#

tests.test_bits_operations module#

class tests.test_bits_operations.TestBitsOperations(methodName='runTest')[source]#

Bases: TestCase

test_dot()[source]#
test_intersection()[source]#
test_kernel()[source]#
test_kernel_2()[source]#
test_rank()[source]#
test_row_echelon()[source]#

tests.test_conversion module#

class tests.test_conversion.TestPauliFromQiskit(methodName='runTest')[source]#

Bases: TestCase

test_operator_from_sparse_pauli()[source]#
test_operator_to_sparse_pauli()[source]#
test_pauli_array_from_pauli_list()[source]#
test_pauli_array_to_pauli_list()[source]#
test_weighted_pauli_array_from_pauli_list()[source]#
tests.test_conversion.get_qubit_operators_list()[source]#

tests.test_mapping module#

class tests.test_mapping.TestJordanWignerMapping(methodName='runTest')[source]#

Bases: TestCase

test_assemble_qubit_hamiltonian_from_sparses()[source]#
test_creation_annihilation_operators()[source]#
test_majoranas()[source]#
test_occupation_operators()[source]#
test_one_body_to_pauli_operator_from_sparse()[source]#
test_one_body_to_pauli_operator_from_tensor()[source]#
test_two_body_to_pauli_operator_from_sparse()[source]#
test_two_body_to_pauli_operator_from_tensor()[source]#

tests.test_operator module#

class tests.test_operator.TestOperator(methodName='runTest')[source]#

Bases: TestCase

test_clifford_conjugate_pauli_array()[source]#
test_combine_repeated_terms()[source]#
test_compose()[source]#
test_eq()[source]#
test_equals()[source]#
test_from_weights_and_labels()[source]#
test_power()[source]#
test_remove_small_weights()[source]#
test_str()[source]#
test_to_npz_from_npz()[source]#

tests.test_operator_array_type_1 module#

class tests.test_operator_array_type_1.TestOperatorArrayType1(methodName='runTest')[source]#

Bases: TestCase

test_commutator()[source]#
test_concatenate()[source]#
test_from_pauli_array()[source]#
test_get_item()[source]#
test_init()[source]#
test_mul_weights()[source]#
test_remove_small_weights()[source]#
test_sum()[source]#
test_x()[source]#

tests.test_operator_array_type_2 module#

class tests.test_operator_array_type_2.TestOperatorArrayType2(methodName='runTest')[source]#

Bases: TestCase

test_combine_basis_paulis()[source]#
test_commutator()[source]#
test_concatenate()[source]#
test_get_item()[source]#
test_init()[source]#
test_remove_small_weights()[source]#
test_remove_unused_basis_paulis()[source]#

tests.test_pauli_array module#

class tests.test_pauli_array.TestPauliArray(methodName='runTest')[source]#

Bases: TestCase

test_add_pauli_array()[source]#
test_bitwisecommute_with()[source]#
test_clifford_conjugate()[source]#
test_commutator()[source]#
test_commute_with()[source]#
test_compose_pauli_array()[source]#
test_cx()[source]#
test_cz()[source]#
test_eq()[source]#
test_fast_flat_unique()[source]#
test_from_labels()[source]#
test_generators()[source]#
test_generators_with_map()[source]#
test_getitem()[source]#
test_h()[source]#
test_inspect()[source]#
test_matrix_from_zx_ints()[source]#
test_mul_weights()[source]#
test_reorder_qubits()[source]#
test_s()[source]#
test_set_item()[source]#
test_str()[source]#
test_to_labels()[source]#
test_to_matrices()[source]#
test_traces()[source]#
test_unique()[source]#
test_x()[source]#
test_z_string_x_string_to_label()[source]#
class tests.test_pauli_array.TestPauliArrayFunc(methodName='runTest')[source]#

Bases: TestCase

test_anticommutator()[source]#
test_argsort()[source]#
test_broadcast_to()[source]#
test_commutator()[source]#
test_concatenate()[source]#
test_expand_dims()[source]#
test_swapaxes()[source]#

tests.test_symplectic module#

class tests.test_symplectic.TestSymplecticBitsOperations(methodName='runTest')[source]#

Bases: TestCase

test_dot()[source]#
test_gram_schmidt_orthogonalization()[source]#
test_isotropic_subspace()[source]#
test_orthogonal_complement()[source]#

tests.test_weighted_pauli_array module#

class tests.test_weighted_pauli_array.TestWeightedPauliArray(methodName='runTest')[source]#

Bases: TestCase

test_cx()[source]#
test_cz()[source]#
test_extract()[source]#
test_from_weights_and_labels()[source]#
test_h()[source]#
test_s()[source]#
test_str()[source]#
test_to_npz_from_npz()[source]#
test_x()[source]#
class tests.test_weighted_pauli_array.TestWeightedPauliArrayFunc(methodName='runTest')[source]#

Bases: TestCase

test_anticommutator()[source]#
test_commutator()[source]#
test_concatenate()[source]#

Module contents#