Comments (1)
Glad to here you want to try out our framework.
While it's true, that tensor
cannot handle lists, you can just expand the arguments to achieve what you want. This is done by doing tensor(op_list...)
. Here, op_list...
is equivalent to *op_list
in Python.
However, you might want to check out the embed
function, which can be used to more elegantly build operators of this composite form (it adds identities on all Hilbert spaces, but the indexed one).
So in QuantumOptics.jl you can rewrite the short example you provided by
bf = FockBasis(M)
b = bf^3 # Product basis of 3 cavities
O_local = embed(b, 1, my_op)
The integer argument in embed
specifies the Hilbert space on which my_op
acts.
If you need any more help, please let me know. You can also ask them on our gitter chat https://gitter.im/QuantumOptics-jl/Lobby if you prefer a more casual platform.
from quantumoptics.jl.
Related Issues (20)
- LazyTensor abnormal allocs HOT 2
- Bug: Abnormal allocation and save_on=false not working HOT 5
- `mul!()` of `LazyProduct` result in high alloc in integration HOT 10
- products for LazySum
- Inexact error Complex -> Float with MCWF jumps HOT 1
- FFT performance issue HOT 1
- Direct steadystate solver HOT 1
- ParticuleBasis HOT 2
- Different result from QuTip 4.7.0 with the same parameters HOT 2
- Incorrect Gaussian state HOT 2
- mcwf() appears to do runtime dispatch in _df()
- Encounter an error when reproducing the code sample from the official manual HOT 1
- A confusion aroused by the sample 4 from official manual HOT 1
- ``potentialoperator()`` could use better documentation HOT 7
- LazySum of LazyTensor of sparse result in high alloc in integration HOT 2
- Addition of LazyTensor and LazySum HOT 1
- Return noise in stochastic solvers HOT 1
- Adding ForwardDiff support for all solvers HOT 1
- Precompiling fails on Julia 1.8.5 HOT 5
- Create an animation / more intuitive example for 2D time dependent schrodinger equation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quantumoptics.jl.