EuropeanCallDelta

class EuropeanCallDelta(uncertainty_model, strike_price, i_state=None, i_objective=None)[source]

The European Call Option Delta.

Evaluates the variance for a European call option given an uncertainty model. The payoff function is f(S, K) = max(0, S - K) for a spot price S and strike price K.

Constructor.

Parameters
  • uncertainty_model (UnivariateDistribution) – uncertainty model for spot price

  • strike_price (float) – strike price of the European option

  • i_state (Union[List[int], ndarray, None]) – indices of qubits representing the uncertainty

  • i_objective (Optional[int]) – index of qubit for objective function

Attributes

EuropeanCallDelta.num_target_qubits

Returns the number of target qubits

Methods

EuropeanCallDelta.build(qc, q[, q_ancillas, …])

Adds corresponding sub-circuit to given circuit

EuropeanCallDelta.build_controlled(qc, q, …)

Adds corresponding controlled sub-circuit to given circuit

EuropeanCallDelta.build_controlled_inverse(qc, …)

Adds controlled inverse of corresponding sub-circuit to given circuit

EuropeanCallDelta.build_controlled_inverse_power(qc, …)

Adds controlled, inverse, power of corresponding circuit.

EuropeanCallDelta.build_controlled_power(qc, …)

Adds controlled power of corresponding circuit.

EuropeanCallDelta.build_inverse(qc, q[, …])

Adds inverse of corresponding sub-circuit to given circuit

EuropeanCallDelta.build_inverse_power(qc, q, …)

Adds inverse power of corresponding circuit.

EuropeanCallDelta.build_power(qc, q, power)

Adds power of corresponding circuit.

EuropeanCallDelta.get_num_qubits()

returns number of qubits

EuropeanCallDelta.get_num_qubits_controlled()

returns number of qubits controlled

EuropeanCallDelta.required_ancillas()

returns required ancillas

EuropeanCallDelta.required_ancillas_controlled()

returns required ancillas controlled

EuropeanCallDelta.value_to_estimation(value)

value to estimate