qml.bose

Overview

This module contains functions and classes for creating and manipulating bosonic operators.

BoseWord and BoseSentence

BoseWord(operator)

Dictionary used to represent a Bose word, a product of bosonic creation and annihilation operators, that can be constructed from a standard dictionary.

BoseSentence(operator)

Dictionary used to represent a Bose sentence, a linear combination of Bose words, with the keys as BoseWord instances and the values correspond to coefficients.

Mapping to qubit operators

binary_mapping(bose_operator[, n_states, ...])

Convert a bosonic operator to a qubit operator using the standard-binary mapping.

unary_mapping(bose_operator[, n_states, ps, ...])

Convert a bosonic operator to a qubit operator using the unary mapping.

christiansen_mapping(bose_operator[, ps, ...])

Convert a bosonic operator to a qubit operator using the Christiansen mapping.