Dev env on OSX with the M1 chip

Hello,
Moving from Python to Julia, mainly for writing a paper where I am going to use Itensors/PastaQ and some Yao, I had to configure everything on OSX from scratch. Being used to Pychar,/CLion, i tested the Julia plug-in but as many had reported before, it does not function properly. Now I have VS code with the Julia plug-in which seems to be much much better.

Happy programming,

1 Like

Yes from what I’ve heard, a lot of Julia developers prefer VS Code.

(Personally I’m kind of “spartan” about my setup and just use vim and the REPL. But I’m kind of jealous that your setup lets you visualize circuits – nice.)

Working with Quantum++ the only viable option for a CMake project is CLIon, which I love. But the Julia plug-in for it had stopped working and not maintained any more.

@BoltzmannEntropy what are you using to visualize circuits?

Apologies for the late response.
This was done using a recent fix that I recently asked from the YaoPlots team. A sample code snippet follows:

using Yao, YaoPlots

cr=(
    kron(control(4, (3), 4=>X)) * 
    kron(I2, I2, I2,H) * 
    kron(control(4, (1), 4=>X)) * 
    kron(Y, I2,Z,I2) * 
    kron(control(4, (1, 4), 3=>X)) * 
    kron(I2,Y,I2,I2) * 
    kron(H, I2, I2, Y) * 
    kron(X, H, H, H)
    )

YaoPlots.plot(cr)
1 Like