Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose number preserving conversion function #577

Merged
merged 3 commits into from
Apr 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 63 additions & 33 deletions src/openfermion/transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,66 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ._binary_code_transform import (binary_code_transform,
dissolve)
from ._bksf import bravyi_kitaev_fast
from ._binary_codes import (bravyi_kitaev_code,
checksum_code,
interleaved_code,
jordan_wigner_code,
linearize_decoder,
parity_code,
weight_one_binary_addressing_code,
weight_one_segment_code,
weight_two_segment_code)
from ._bravyi_kitaev import bravyi_kitaev
from ._bravyi_kitaev_tree import bravyi_kitaev_tree
from ._conversion import (get_boson_operator,
get_diagonal_coulomb_hamiltonian,
get_fermion_operator,
get_interaction_rdm,
get_interaction_operator,
get_quadratic_hamiltonian,
get_molecular_data,
get_sparse_operator,
get_quad_operator)
from ._jordan_wigner import jordan_wigner
from ._qubit_operator_transforms import (project_onto_sector,
projection_error,
rotate_qubit_by_pauli)
from ._reverse_jordan_wigner import reverse_jordan_wigner
from ._verstraete_cirac import verstraete_cirac_2d_square
from ._weyl_ordering import (symmetric_ordering,
weyl_polynomial_quantization)
from ._remove_symmetry_qubits import (symmetry_conserving_bravyi_kitaev,
edit_hamiltonian_for_spin)
from ._binary_code_transform import (
binary_code_transform,
dissolve,
)

from ._bksf import (
bravyi_kitaev_fast,)

from ._binary_codes import (
bravyi_kitaev_code,
checksum_code,
interleaved_code,
jordan_wigner_code,
linearize_decoder,
parity_code,
weight_one_binary_addressing_code,
weight_one_segment_code,
weight_two_segment_code,
)

from ._bravyi_kitaev import (
bravyi_kitaev,)

from ._bravyi_kitaev_tree import (
bravyi_kitaev_tree,)

from ._conversion import (
get_boson_operator,
get_diagonal_coulomb_hamiltonian,
get_fermion_operator,
get_interaction_rdm,
get_interaction_operator,
get_quadratic_hamiltonian,
get_molecular_data,
get_number_preserving_sparse_operator,
get_sparse_operator,
get_quad_operator,
)

from ._jordan_wigner import (
jordan_wigner,)

from ._qubit_operator_transforms import (
project_onto_sector,
projection_error,
rotate_qubit_by_pauli,
)

from ._reverse_jordan_wigner import (
reverse_jordan_wigner,)

from ._verstraete_cirac import (
verstraete_cirac_2d_square,)

from ._weyl_ordering import (
symmetric_ordering,
weyl_polynomial_quantization,
)

from ._remove_symmetry_qubits import (
symmetry_conserving_bravyi_kitaev,
edit_hamiltonian_for_spin,
)