The Measurement-Feedback Coherent Continuous-Variable Machine#
Stochastic differential equations#
The dynamics describing a coherent continuous-variable machine with a measurement-feedback coupling scheme (MF-CCVM) are represented by the following set of stochastic differential equations (SDE). In this model, the degenerate optical parametric oscillator (DOPO) pulses are assumed to maintain Gaussian distribution throughout the time evolution with the mean values \(\mu\) and variances \(\sigma\):
where
is the normalized continuous measurement strength scheduled using an exponential function, \(\lambda\) is a hyper-parameter controlling the strength of the feedback signal (coupling term), \(g\) is the normalized second-order nonlinearity coefficient of the nonlinear crystal, and
is the vector of measured mean field amplitudes as a function of the mean-field amplitudes within the cavity \(\mu\) and \(dW\), the vector of Wiener processes.
Example script for solving a box-constrained quadratic programming problem using the MF-CCVM solver#
The demo script, ccvm_boxqp_mf.py, in the examples folder simulates the dynamics of the MF-CCVM for an example problem instance. It can be run from the project’s root directory using the following command in the terminal:
$ python ccvm/examples/ccvm_boxqp_mf.py
The script will print the solution, similar to the example output below.
Solution(
problem_size=20,
batch_size=1000,
iterations=15000,
...,
solve_time=10.338,
optimal_value=152.602,
best_value=147.960,
solution_performance={
'optimal': 0.666,
'one_percent': 0.666,
'two_percent': 0.666,
'three_percent': 0.684,
'four_percent': 0.994,
'five_percent': 0.994,
'ten_percent': 0.995
}
)