Welcome to QNET’s documentation!¶
The QNET package is a set of tools to aid in the design and analysis of photonic circuit models, but it features a flexible symbolic algebra module that can be applied in a more general setting. Our proposed Quantum Hardware Description Language [QHDL] serves to describe a circuit topology and specification of a larger entity in terms of parametrizable subcomponents. By design this is analogous to the specification of electric circuitry using the structural description elements of VHDL or Verilog.
The physical systems that can be modeled within the framework include quantum optical experiments that can be described as nodes with internal degrees of freedom such as interacting quantum harmonic oscillators and/or N-level quantum systems that, in turn are coupled to a finite number of bosonic quantum fields. Furthermore, the formalism applies also to superconducting microwave circuit (Circuit QED) systems.
The main components of this package are:
- A symbolic computer algebra package
qnet.algebrafor Hilbert Space quantum mechanical operators, the Gough-James circuit algebra and also an algebra for Hilbert space states and Super-operators.
- The QHDL language definition and parser
qnet.qhdlincluding a front-end located at
bin/parse_qhdl.pythat can convert a QHDL-file into a circuit component library file.
- A library of existing primitive or composite circuit components
qnet.circuit_componentsthat can be embedded into a new circuit definition.
In practice one might want to use these to:
- Define and specify your basic circuit component model and create a library file, Circuit Component Definition
gschem(of gEDA) to graphically design a circuit model, Schematic Capture
- Export the schematic to QHDL using
gnetlist(also part of gEDA) or directly write a QHDL file, Netlisting
- Parse the QHDL-circuit definition file into a Python circuit library component using the parser front-end
bin/parse_qhdl.py, Parsing QHDL
- Analyze the model analytically using our symbolic algebra and/or numerically using QuTiP, Symbolic Algebra, Symbolic Analysis and Simulation
This package is still work in progress and as it is currently being developed by a single developer (interested in helping?), documentation and comprehensive testing code are still somewhat lacking. Any contributions, bug reports and general feedback from end-users would be highly appreciated. If you have found a bug, it would be extremely helpful if you could try to write a minimal code example that reproduces the bug. Feature requests will definitely be considered. Higher priority will be given to things that many people ask for and that can be implemented efficiently.
To learn of how to carry out each of these steps, we recommend looking at the provided examples and reading the relevant sections in the QNET manual. Also, if you want to implement and add your own primitive device models, please consult the QNET manual.
- Symbolic Algebra
- Properties and Simplification of Circuit Algebraic Expressions
- Circuit Component Definition
- Schematic Capture
- Parsing QHDL
- Symbolic Analysis and Simulation
- algebra Package
- circuit_components Package
- misc Package
- qhdl Package