catch22 / quantbox Goto Github PK
View Code? Open in Web Editor NEWThe quantum sandbox
License: MIT License
The quantum sandbox
License: MIT License
See here. This code
% prepare Ψ ⊗ Ψ for a Haar random pure state Ψ
[U, ~, ~] = svd(rand(3) + 1i*rand(3));
sigma = U * diag([1 0 0]) * U';
sigma = sigma / trace(sigma);
rho = kron(sigma, sigma);
dims = [3 3];
% try to find 2:1 extension that is 1:0-PPT
[RHO_EXT, ~, ~, ~, INFO] = sym_extension(rho, dims, [2 1], [1 0], [1 1], 'sdpt3');
leads to the following error:
error: total dimension of C should be > length(b)
error: called from
validate at line 143 column 5
sqlp at line 159 column 38
solve_sdp>solve_sdp_with_sdpt3 at line 201 column 17
solve_sdp at line 177 column 3
sym_extension at line 120 column 14
Currently the workaround is to comment out line 143 in validate.m.
(This does not work, see below!)
See here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.