Comments (3)
The problem is actually more fundamental: We need to ensure that in any expression, the sanitized names for any symbols are used.
from qnet.
Actually you can just leave out the backslashes everywhere. It still renders nicely.
from qnet.
True, but I frequently like to use more complex LaTeX code such as '\chi^{(1)}_0' for symbol names. In any case, the symbol names can be arbitrary unicode strings, while valid C++ variable names are only a subset of ASCII. So, we can't get around doing some sanitation while deriving variable names from symbol names.
from qnet.
Related Issues (20)
- Applying a LocalProjector to a BasisKet does not return a simplified result HOT 1
- Need Pattern.finditer
- Allow CircuitSymbols labels to contain superscripts
- CircuitSymbols labels should always be rendered as text in Latex
- Intelligent feedback
- _flat_api_tools introduces too much abstraction for linters HOT 3
- Prevent instantiation of abstract base classes HOT 1
- LocalSpace.create crashes when using local_identifiers HOT 2
- .show() method fails HOT 10
- Use robust, cross-platform compatible file paths
- Officially support Windows HOT 2
- Adapt to change of free_symbols in sympy 1.2
- Add open_file utility function
- Hilbert space supermode factors and canonical transformations HOT 10
- Commutation relations are broken: distinguish finite and truncated basis dimension HOT 3
- Incorrect result for product of sums
- Indexed LocalSpaces must not be considered disjoint
- Write tests for symbolic_*
- How to use Pauli matrices in QNET?
- Error importing QNET package
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 qnet.