mqt-core 2.5.1__tar.gz → 3.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mqt_core-2.5.1 → mqt_core-3.3.3}/.clang-format +1 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/.clang-tidy +6 -2
- {mqt_core-2.5.1 → mqt_core-3.3.3}/.cmake-format.yaml +3 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/.editorconfig +3 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/.gitignore +8 -2
- mqt_core-3.3.3/.license-tools-config.json +38 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/.pre-commit-config.yaml +52 -21
- mqt_core-3.3.3/.python_version +1 -0
- mqt_core-3.3.3/.readthedocs.yaml +46 -0
- mqt_core-3.3.3/CHANGELOG.md +377 -0
- mqt_core-3.3.3/CITATION.cff +48 -0
- mqt_core-3.3.3/CMakeLists.txt +149 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/LICENSE.md +8 -3
- mqt_core-3.3.3/PKG-INFO +210 -0
- mqt_core-3.3.3/README.md +171 -0
- mqt_core-3.3.3/UPGRADING.md +129 -0
- mqt_core-3.3.3/bindings/CMakeLists.txt +19 -0
- mqt_core-3.3.3/bindings/dd/CMakeLists.txt +32 -0
- mqt_core-3.3.3/bindings/dd/register_dd.cpp +103 -0
- mqt_core-3.3.3/bindings/dd/register_dd_package.cpp +498 -0
- mqt_core-3.3.3/bindings/dd/register_matrix_dds.cpp +115 -0
- mqt_core-3.3.3/bindings/dd/register_vector_dds.cpp +109 -0
- mqt_core-3.3.3/bindings/fomac/CMakeLists.txt +26 -0
- mqt_core-3.3.3/bindings/fomac/fomac.cpp +134 -0
- mqt_core-3.3.3/bindings/ir/CMakeLists.txt +34 -0
- mqt_core-3.3.3/bindings/ir/operations/register_compound_operation.cpp +165 -0
- mqt_core-3.3.3/bindings/ir/operations/register_control.cpp +53 -0
- mqt_core-3.3.3/bindings/ir/operations/register_if_else_operation.cpp +116 -0
- {mqt_core-2.5.1/src/python → mqt_core-3.3.3/bindings/ir}/operations/register_non_unitary_operation.cpp +27 -6
- {mqt_core-2.5.1/src/python → mqt_core-3.3.3/bindings/ir}/operations/register_operation.cpp +26 -6
- {mqt_core-2.5.1/src/python → mqt_core-3.3.3/bindings/ir}/operations/register_optype.cpp +28 -13
- {mqt_core-2.5.1/src/python → mqt_core-3.3.3/bindings/ir}/operations/register_standard_operation.cpp +28 -7
- {mqt_core-2.5.1/src/python → mqt_core-3.3.3/bindings/ir}/operations/register_symbolic_operation.cpp +29 -8
- mqt_core-3.3.3/bindings/ir/register_ir.cpp +43 -0
- mqt_core-3.3.3/bindings/ir/register_operations.cpp +43 -0
- {mqt_core-2.5.1/src/python → mqt_core-3.3.3/bindings/ir}/register_permutation.cpp +48 -12
- {mqt_core-2.5.1/src/python → mqt_core-3.3.3/bindings/ir}/register_quantum_computation.cpp +140 -44
- mqt_core-3.3.3/bindings/ir/register_registers.cpp +96 -0
- mqt_core-3.3.3/bindings/ir/register_symbolic.cpp +33 -0
- {mqt_core-2.5.1/src/python → mqt_core-3.3.3/bindings/ir}/symbolic/register_expression.cpp +28 -6
- {mqt_core-2.5.1/src/python → mqt_core-3.3.3/bindings/ir}/symbolic/register_term.cpp +25 -4
- mqt_core-3.3.3/bindings/ir/symbolic/register_variable.cpp +42 -0
- mqt_core-3.3.3/bindings/na/CMakeLists.txt +18 -0
- mqt_core-3.3.3/bindings/na/fomac/CMakeLists.txt +26 -0
- mqt_core-3.3.3/bindings/na/fomac/fomac.cpp +112 -0
- mqt_core-3.3.3/cmake/AddMQTCoreLibrary.cmake +50 -0
- mqt_core-3.3.3/cmake/AddMQTPythonBinding.cmake +55 -0
- mqt_core-3.3.3/cmake/Cache.cmake +33 -0
- mqt_core-3.3.3/cmake/CleanMLIRDocs.cmake +27 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/cmake/CompilerOptions.cmake +15 -9
- {mqt_core-2.5.1 → mqt_core-3.3.3}/cmake/CompilerWarnings.cmake +9 -6
- mqt_core-3.3.3/cmake/ExternalDependencies.cmake +124 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/cmake/FindGMP.cmake +8 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/cmake/GetVersion.cmake +8 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/cmake/PackageAddTest.cmake +18 -4
- {mqt_core-2.5.1 → mqt_core-3.3.3}/cmake/PreventInSourceBuilds.cmake +8 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/cmake/Sanitizers.cmake +8 -0
- mqt_core-3.3.3/cmake/SetupMLIR.cmake +47 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/cmake/StandardProjectSettings.cmake +36 -14
- {mqt_core-2.5.1 → mqt_core-3.3.3}/cmake/cmake_uninstall.cmake.in +8 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/cmake/mqt-core-config.cmake.in +12 -3
- mqt_core-3.3.3/include/mqt-core/algorithms/BernsteinVazirani.hpp +39 -0
- mqt_core-3.3.3/include/mqt-core/algorithms/GHZState.hpp +18 -0
- mqt_core-3.3.3/include/mqt-core/algorithms/Grover.hpp +33 -0
- mqt_core-3.3.3/include/mqt-core/algorithms/QFT.hpp +21 -0
- mqt_core-3.3.3/include/mqt-core/algorithms/QPE.hpp +30 -0
- mqt_core-3.3.3/include/mqt-core/algorithms/RandomCliffordCircuit.hpp +22 -0
- mqt_core-3.3.3/include/mqt-core/algorithms/StatePreparation.hpp +43 -0
- mqt_core-3.3.3/include/mqt-core/algorithms/WState.hpp +18 -0
- {mqt_core-2.5.1/include/mqt-core → mqt_core-3.3.3/include/mqt-core/circuit_optimizer}/CircuitOptimizer.hpp +39 -20
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/datastructures/DirectedAcyclicGraph.hpp +14 -4
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/datastructures/DirectedGraph.hpp +20 -10
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/datastructures/DisjointSet.hpp +10 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/datastructures/Layer.hpp +39 -14
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/datastructures/SymmetricMatrix.hpp +13 -1
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/datastructures/UndirectedGraph.hpp +40 -14
- mqt_core-3.3.3/include/mqt-core/dd/Approximation.hpp +45 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/CachedEdge.hpp +24 -23
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/Complex.hpp +20 -6
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/ComplexNumbers.hpp +10 -18
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/ComplexValue.hpp +15 -7
- mqt_core-3.3.3/include/mqt-core/dd/ComputeTable.hpp +183 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/DDDefinitions.hpp +28 -8
- mqt_core-3.3.3/include/mqt-core/dd/DDpackageConfig.hpp +104 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/DensityNoiseTable.hpp +43 -22
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/Edge.hpp +36 -38
- mqt_core-3.3.3/include/mqt-core/dd/Export.hpp +438 -0
- mqt_core-3.3.3/include/mqt-core/dd/FunctionalityConstruction.hpp +75 -0
- mqt_core-3.3.3/include/mqt-core/dd/GateMatrixDefinitions.hpp +43 -0
- mqt_core-3.3.3/include/mqt-core/dd/LinkedListBase.hpp +45 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/MemoryManager.hpp +64 -42
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/Node.hpp +100 -83
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/NoiseFunctionality.hpp +30 -20
- mqt_core-3.3.3/include/mqt-core/dd/Operations.hpp +306 -0
- mqt_core-3.3.3/include/mqt-core/dd/Package.hpp +2036 -0
- mqt_core-3.3.3/include/mqt-core/dd/Package_fwd.hpp +22 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/RealNumber.hpp +66 -73
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/RealNumberUniqueTable.hpp +26 -27
- mqt_core-3.3.3/include/mqt-core/dd/Simulation.hpp +98 -0
- mqt_core-3.3.3/include/mqt-core/dd/StateGeneration.hpp +143 -0
- mqt_core-3.3.3/include/mqt-core/dd/StochasticNoiseOperationTable.hpp +88 -0
- mqt_core-3.3.3/include/mqt-core/dd/UnaryComputeTable.hpp +121 -0
- mqt_core-3.3.3/include/mqt-core/dd/UniqueTable.hpp +243 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/statistics/MemoryManagerStatistics.hpp +23 -6
- mqt_core-3.3.3/include/mqt-core/dd/statistics/PackageStatistics.hpp +55 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/statistics/Statistics.hpp +10 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/statistics/TableStatistics.hpp +10 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/dd/statistics/UniqueTableStatistics.hpp +10 -10
- mqt_core-3.3.3/include/mqt-core/fomac/FoMaC.hpp +568 -0
- mqt_core-3.3.3/include/mqt-core/ir/Definitions.hpp +108 -0
- mqt_core-3.3.3/include/mqt-core/ir/Permutation.hpp +213 -0
- mqt_core-3.3.3/include/mqt-core/ir/QuantumComputation.hpp +598 -0
- mqt_core-3.3.3/include/mqt-core/ir/Register.hpp +125 -0
- {mqt_core-2.5.1/include/mqt-core → mqt_core-3.3.3/include/mqt-core/ir}/operations/AodOperation.hpp +27 -51
- {mqt_core-2.5.1/include/mqt-core → mqt_core-3.3.3/include/mqt-core/ir}/operations/CompoundOperation.hpp +59 -33
- mqt_core-3.3.3/include/mqt-core/ir/operations/Control.hpp +142 -0
- mqt_core-3.3.3/include/mqt-core/ir/operations/Expression.hpp +847 -0
- mqt_core-3.3.3/include/mqt-core/ir/operations/IfElseOperation.hpp +169 -0
- {mqt_core-2.5.1/include/mqt-core → mqt_core-3.3.3/include/mqt-core/ir}/operations/NonUnitaryOperation.hpp +39 -25
- mqt_core-3.3.3/include/mqt-core/ir/operations/OpType.hpp +120 -0
- mqt_core-3.3.3/include/mqt-core/ir/operations/OpType.inc +77 -0
- {mqt_core-2.5.1/include/mqt-core → mqt_core-3.3.3/include/mqt-core/ir}/operations/Operation.hpp +61 -33
- {mqt_core-2.5.1/include/mqt-core → mqt_core-3.3.3/include/mqt-core/ir}/operations/StandardOperation.hpp +34 -19
- {mqt_core-2.5.1/include/mqt-core → mqt_core-3.3.3/include/mqt-core/ir}/operations/SymbolicOperation.hpp +66 -87
- mqt_core-3.3.3/include/mqt-core/na/NAComputation.hpp +185 -0
- mqt_core-3.3.3/include/mqt-core/na/device/Device.hpp +410 -0
- mqt_core-3.3.3/include/mqt-core/na/device/Generator.hpp +447 -0
- mqt_core-3.3.3/include/mqt-core/na/entities/Atom.hpp +62 -0
- mqt_core-3.3.3/include/mqt-core/na/entities/Location.hpp +154 -0
- mqt_core-3.3.3/include/mqt-core/na/entities/Zone.hpp +95 -0
- mqt_core-3.3.3/include/mqt-core/na/fomac/Device.hpp +169 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/GlobalCZOp.hpp +38 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/GlobalOp.hpp +58 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/GlobalRYOp.hpp +42 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/LoadOp.hpp +89 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/LocalOp.hpp +56 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/LocalRZOp.hpp +42 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/LocalUOp.hpp +49 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/MoveOp.hpp +66 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/Op.hpp +62 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/ShuttlingOp.hpp +51 -0
- mqt_core-3.3.3/include/mqt-core/na/operations/StoreOp.hpp +87 -0
- {mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser → mqt_core-3.3.3/include/mqt-core/qasm3}/Exception.hpp +11 -1
- {mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser → mqt_core-3.3.3/include/mqt-core/qasm3}/Gate.hpp +14 -4
- mqt_core-3.3.3/include/mqt-core/qasm3/Importer.hpp +192 -0
- {mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser → mqt_core-3.3.3/include/mqt-core/qasm3}/InstVisitor.hpp +18 -18
- {mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser → mqt_core-3.3.3/include/mqt-core/qasm3}/NestedEnvironment.hpp +14 -3
- {mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser → mqt_core-3.3.3/include/mqt-core/qasm3}/Parser.hpp +35 -68
- {mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser → mqt_core-3.3.3/include/mqt-core/qasm3}/Scanner.hpp +20 -24
- {mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser → mqt_core-3.3.3/include/mqt-core/qasm3}/Statement.hpp +138 -103
- mqt_core-3.3.3/include/mqt-core/qasm3/Statement_fwd.hpp +39 -0
- mqt_core-3.3.3/include/mqt-core/qasm3/StdGates.hpp +232 -0
- mqt_core-3.3.3/include/mqt-core/qasm3/Token.hpp +198 -0
- {mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser → mqt_core-3.3.3/include/mqt-core/qasm3}/Types.hpp +24 -9
- mqt_core-3.3.3/include/mqt-core/qasm3/Types_fwd.hpp +22 -0
- mqt_core-3.3.3/include/mqt-core/qasm3/passes/CompilerPass.hpp +22 -0
- mqt_core-3.3.3/include/mqt-core/qasm3/passes/ConstEvalPass.hpp +102 -0
- {mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser → mqt_core-3.3.3/include/mqt-core/qasm3}/passes/TypeCheckPass.hpp +35 -45
- mqt_core-3.3.3/include/mqt-core/qdmi/Driver.hpp +432 -0
- mqt_core-3.3.3/include/mqt-core/qdmi/dd/Device.hpp +310 -0
- mqt_core-3.3.3/include/mqt-core/qir/runtime/QIR.h +176 -0
- mqt_core-3.3.3/include/mqt-core/qir/runtime/Runtime.hpp +360 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/zx/FunctionalityConstruction.hpp +43 -6
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/zx/Rational.hpp +91 -2
- mqt_core-3.3.3/include/mqt-core/zx/Rules.hpp +132 -0
- mqt_core-3.3.3/include/mqt-core/zx/Simplify.hpp +182 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/zx/Utils.hpp +63 -2
- {mqt_core-2.5.1 → mqt_core-3.3.3}/include/mqt-core/zx/ZXDefinitions.hpp +23 -2
- mqt_core-3.3.3/include/mqt-core/zx/ZXDiagram.hpp +480 -0
- mqt_core-3.3.3/json/na/device.json +148 -0
- mqt_core-3.3.3/mlir/.gitignore +1 -0
- mqt_core-3.3.3/mlir/CMakeLists.txt +27 -0
- mqt_core-3.3.3/mlir/include/CMakeLists.txt +9 -0
- mqt_core-3.3.3/mlir/include/mlir/CMakeLists.txt +10 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/CMakeLists.txt +12 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/MQTOptToMQTRef/CMakeLists.txt +13 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/MQTOptToMQTRef/MQTOptToMQTRef.h +23 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/MQTOptToMQTRef/MQTOptToMQTRef.td +29 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/MQTRefToMQTOpt/CMakeLists.txt +13 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/MQTRefToMQTOpt/MQTRefToMQTOpt.h +23 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/MQTRefToMQTOpt/MQTRefToMQTOpt.td +29 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/MQTRefToQIR/CMakeLists.txt +13 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/MQTRefToQIR/MQTRefToQIR.h +23 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/MQTRefToQIR/MQTRefToQIR.td +66 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/QIRToMQTRef/CMakeLists.txt +13 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/QIRToMQTRef/QIRToMQTRef.h +23 -0
- mqt_core-3.3.3/mlir/include/mlir/Conversion/QIRToMQTRef/QIRToMQTRef.td +51 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/CMakeLists.txt +10 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/Common/IR/CommonTraits.h +139 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/Common/IR/CommonTraits.td +48 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/Common/IR/StdOps.td.inc +344 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/CMakeLists.txt +10 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/IR/CMakeLists.txt +17 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/IR/MQTOptDialect.h +76 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/IR/MQTOptInterfaces.td +228 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/IR/MQTOptOps.td +225 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/Transforms/CMakeLists.txt +12 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/Transforms/LiftMeasurementsPasses.h +32 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/Transforms/Passes.h +63 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/Transforms/Passes.td +162 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/Transforms/Transpilation/Architecture.h +111 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/Transforms/Transpilation/Common.h +83 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/Transforms/Transpilation/Layout.h +293 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/Transforms/Transpilation/Router.h +247 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/Transforms/Transpilation/Scheduler.h +276 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTOpt/Transforms/Transpilation/Stack.h +87 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTRef/CMakeLists.txt +9 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTRef/IR/CMakeLists.txt +17 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTRef/IR/MQTRefDialect.h +69 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTRef/IR/MQTRefInterfaces.td +108 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTRef/IR/MQTRefOps.td +200 -0
- mqt_core-3.3.3/mlir/include/mlir/Dialect/MQTRef/Translation/ImportQuantumComputation.h +22 -0
- mqt_core-3.3.3/mlir/tools/CMakeLists.txt +9 -0
- mqt_core-3.3.3/mlir/tools/quantum-opt/CMakeLists.txt +30 -0
- mqt_core-3.3.3/mlir/tools/quantum-opt/quantum-opt.cpp +51 -0
- mqt_core-3.3.3/mlir/unittests/CMakeLists.txt +9 -0
- mqt_core-3.3.3/mlir/unittests/translation/CMakeLists.txt +21 -0
- mqt_core-3.3.3/mlir/unittests/translation/test_translation.cpp +1016 -0
- mqt_core-3.3.3/noxfile.py +211 -0
- mqt_core-3.3.3/pyproject.toml +349 -0
- mqt_core-3.3.3/python/mqt/core/__init__.py +77 -0
- mqt_core-3.3.3/python/mqt/core/__main__.py +55 -0
- mqt_core-3.3.3/python/mqt/core/_commands.py +52 -0
- mqt_core-3.3.3/python/mqt/core/_compat/__init__.py +11 -0
- mqt_core-3.3.3/python/mqt/core/_compat/typing.py +29 -0
- mqt_core-3.3.3/python/mqt/core/_version.py +34 -0
- mqt_core-3.3.3/python/mqt/core/_version.pyi +12 -0
- mqt_core-3.3.3/python/mqt/core/dd.pyi +1016 -0
- mqt_core-2.5.1/src/mqt/core/evaluation.py → mqt_core-3.3.3/python/mqt/core/dd_evaluation.py +63 -28
- mqt_core-3.3.3/python/mqt/core/fomac.pyi +125 -0
- {mqt_core-2.5.1/src/mqt/core/_core → mqt_core-3.3.3/python/mqt/core/ir}/__init__.pyi +455 -233
- {mqt_core-2.5.1/src/mqt/core/_core → mqt_core-3.3.3/python/mqt/core/ir}/operations.pyi +313 -220
- mqt_core-3.3.3/python/mqt/core/ir/registers.pyi +91 -0
- mqt_core-3.3.3/python/mqt/core/ir/symbolic.pyi +177 -0
- mqt_core-3.3.3/python/mqt/core/na/__init__.py +12 -0
- mqt_core-3.3.3/python/mqt/core/na/fomac.pyi +117 -0
- mqt_core-3.3.3/python/mqt/core/plugins/__init__.py +9 -0
- mqt_core-3.3.3/python/mqt/core/plugins/qiskit/__init__.py +19 -0
- mqt_core-3.3.3/python/mqt/core/plugins/qiskit/mqt_to_qiskit.py +420 -0
- mqt_core-2.5.1/src/mqt/core/plugins/qiskit.py → mqt_core-3.3.3/python/mqt/core/plugins/qiskit/qiskit_to_mqt.py +196 -58
- mqt_core-3.3.3/sitecustomize.py +23 -0
- mqt_core-3.3.3/src/CMakeLists.txt +142 -0
- mqt_core-3.3.3/src/algorithms/BernsteinVazirani.cpp +184 -0
- mqt_core-3.3.3/src/algorithms/CMakeLists.txt +47 -0
- mqt_core-3.3.3/src/algorithms/GHZState.cpp +30 -0
- mqt_core-3.3.3/src/algorithms/Grover.cpp +144 -0
- mqt_core-3.3.3/src/algorithms/QFT.cpp +106 -0
- mqt_core-3.3.3/src/algorithms/QPE.cpp +210 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/algorithms/RandomCliffordCircuit.cpp +62 -79
- mqt_core-3.3.3/src/algorithms/StatePreparation.cpp +301 -0
- mqt_core-3.3.3/src/algorithms/WState.cpp +46 -0
- mqt_core-3.3.3/src/circuit_optimizer/CMakeLists.txt +46 -0
- {mqt_core-2.5.1/src → mqt_core-3.3.3/src/circuit_optimizer}/CircuitOptimizer.cpp +652 -563
- mqt_core-3.3.3/src/datastructures/CMakeLists.txt +42 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/datastructures/Layer.cpp +35 -10
- mqt_core-3.3.3/src/dd/Approximation.cpp +247 -0
- mqt_core-3.3.3/src/dd/CMakeLists.txt +42 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/CachedEdge.cpp +37 -27
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/Complex.cpp +20 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/ComplexNumbers.cpp +15 -14
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/ComplexValue.cpp +18 -7
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/Edge.cpp +128 -102
- mqt_core-2.5.1/include/mqt-core/dd/Export.hpp → mqt_core-3.3.3/src/dd/Export.cpp +93 -457
- mqt_core-3.3.3/src/dd/FunctionalityConstruction.cpp +144 -0
- mqt_core-3.3.3/src/dd/GateMatrixDefinitions.cpp +253 -0
- mqt_core-3.3.3/src/dd/MemoryManager.cpp +107 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/Node.cpp +10 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/NoiseFunctionality.cpp +49 -45
- mqt_core-3.3.3/src/dd/Operations.cpp +330 -0
- mqt_core-3.3.3/src/dd/Package.cpp +1295 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/RealNumber.cpp +55 -45
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/RealNumberUniqueTable.cpp +66 -56
- mqt_core-3.3.3/src/dd/Simulation.cpp +237 -0
- mqt_core-3.3.3/src/dd/StateGeneration.cpp +364 -0
- mqt_core-3.3.3/src/dd/UniqueTable.cpp +172 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/statistics/MemoryManagerStatistics.cpp +28 -31
- mqt_core-2.5.1/include/mqt-core/dd/statistics/PackageStatistics.hpp → mqt_core-3.3.3/src/dd/statistics/PackageStatistics.cpp +94 -103
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/statistics/Statistics.cpp +10 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/dd/statistics/TableStatistics.cpp +10 -0
- mqt_core-3.3.3/src/dd/statistics/UniqueTableStatistics.cpp +30 -0
- mqt_core-3.3.3/src/fomac/CMakeLists.txt +32 -0
- mqt_core-3.3.3/src/fomac/FoMaC.cpp +423 -0
- mqt_core-3.3.3/src/ir/CMakeLists.txt +40 -0
- mqt_core-3.3.3/src/ir/Permutation.cpp +64 -0
- mqt_core-3.3.3/src/ir/QuantumComputation.cpp +1667 -0
- {mqt_core-2.5.1/src → mqt_core-3.3.3/src/ir}/operations/AodOperation.cpp +88 -22
- {mqt_core-2.5.1/src → mqt_core-3.3.3/src/ir}/operations/CompoundOperation.cpp +85 -52
- mqt_core-3.3.3/src/ir/operations/Expression.cpp +35 -0
- mqt_core-3.3.3/src/ir/operations/IfElseOperation.cpp +317 -0
- {mqt_core-2.5.1/src → mqt_core-3.3.3/src/ir}/operations/NonUnitaryOperation.cpp +42 -18
- mqt_core-3.3.3/src/ir/operations/OpType.cpp +171 -0
- {mqt_core-2.5.1/src → mqt_core-3.3.3/src/ir}/operations/Operation.cpp +21 -23
- {mqt_core-2.5.1/src → mqt_core-3.3.3/src/ir}/operations/StandardOperation.cpp +97 -85
- {mqt_core-2.5.1/src → mqt_core-3.3.3/src/ir}/operations/SymbolicOperation.cpp +84 -26
- mqt_core-3.3.3/src/na/CMakeLists.txt +48 -0
- mqt_core-3.3.3/src/na/NAComputation.cpp +265 -0
- mqt_core-3.3.3/src/na/device/App.cpp +447 -0
- mqt_core-3.3.3/src/na/device/CMakeLists.txt +206 -0
- mqt_core-3.3.3/src/na/device/Device.cpp +726 -0
- mqt_core-3.3.3/src/na/device/DynDevice.cpp +155 -0
- mqt_core-3.3.3/src/na/device/Generator.cpp +511 -0
- mqt_core-3.3.3/src/na/entities/Zone.cpp +26 -0
- mqt_core-3.3.3/src/na/fomac/CMakeLists.txt +35 -0
- mqt_core-3.3.3/src/na/fomac/Device.cpp +562 -0
- mqt_core-3.3.3/src/na/operations/GlobalOp.cpp +51 -0
- mqt_core-3.3.3/src/na/operations/LoadOp.cpp +39 -0
- mqt_core-3.3.3/src/na/operations/LocalOp.cpp +52 -0
- mqt_core-3.3.3/src/na/operations/MoveOp.cpp +32 -0
- mqt_core-3.3.3/src/na/operations/StoreOp.cpp +39 -0
- mqt_core-3.3.3/src/qasm3/CMakeLists.txt +42 -0
- mqt_core-3.3.3/src/qasm3/Importer.cpp +961 -0
- {mqt_core-2.5.1/src/parsers/qasm3_parser → mqt_core-3.3.3/src/qasm3}/Parser.cpp +140 -64
- {mqt_core-2.5.1/src/parsers/qasm3_parser → mqt_core-3.3.3/src/qasm3}/Scanner.cpp +112 -30
- mqt_core-3.3.3/src/qasm3/Statement.cpp +88 -0
- mqt_core-3.3.3/src/qasm3/Token.cpp +308 -0
- {mqt_core-2.5.1/src/parsers/qasm3_parser → mqt_core-3.3.3/src/qasm3}/Types.cpp +11 -1
- {mqt_core-2.5.1/src/parsers/qasm3_parser → mqt_core-3.3.3/src/qasm3}/passes/ConstEvalPass.cpp +108 -15
- {mqt_core-2.5.1/src/parsers/qasm3_parser → mqt_core-3.3.3/src/qasm3}/passes/TypeCheckPass.cpp +118 -45
- mqt_core-3.3.3/src/qdmi/CMakeLists.txt +34 -0
- mqt_core-3.3.3/src/qdmi/Driver.cpp +507 -0
- mqt_core-3.3.3/src/qdmi/dd/CMakeLists.txt +63 -0
- mqt_core-3.3.3/src/qdmi/dd/Device.cpp +911 -0
- mqt_core-3.3.3/src/qir/CMakeLists.txt +13 -0
- mqt_core-3.3.3/src/qir/runner/CMakeLists.txt +36 -0
- mqt_core-3.3.3/src/qir/runner/Runner.cpp +420 -0
- mqt_core-3.3.3/src/qir/runtime/CMakeLists.txt +25 -0
- mqt_core-3.3.3/src/qir/runtime/QIR.cpp +394 -0
- mqt_core-3.3.3/src/qir/runtime/Runtime.cpp +165 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/zx/CMakeLists.txt +41 -27
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/zx/FunctionalityConstruction.cpp +42 -22
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/zx/Rational.cpp +10 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/zx/Rules.cpp +22 -12
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/zx/Simplify.cpp +14 -4
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/zx/Utils.cpp +18 -3
- {mqt_core-2.5.1 → mqt_core-3.3.3}/src/zx/ZXDiagram.cpp +33 -21
- mqt_core-3.3.3/uv.lock +3311 -0
- mqt_core-2.5.1/.readthedocs.yaml +0 -40
- mqt_core-2.5.1/CMakeLists.txt +0 -90
- mqt_core-2.5.1/PKG-INFO +0 -173
- mqt_core-2.5.1/README.md +0 -96
- mqt_core-2.5.1/cmake/Cache.cmake +0 -24
- mqt_core-2.5.1/cmake/ExternalDependencies.cmake +0 -90
- mqt_core-2.5.1/eval/CMakeLists.txt +0 -2
- mqt_core-2.5.1/eval/eval_dd_package.cpp +0 -268
- mqt_core-2.5.1/include/mqt-core/Definitions.hpp +0 -143
- mqt_core-2.5.1/include/mqt-core/Permutation.hpp +0 -55
- mqt_core-2.5.1/include/mqt-core/QuantumComputation.hpp +0 -949
- mqt_core-2.5.1/include/mqt-core/algorithms/BernsteinVazirani.hpp +0 -28
- mqt_core-2.5.1/include/mqt-core/algorithms/Entanglement.hpp +0 -12
- mqt_core-2.5.1/include/mqt-core/algorithms/GoogleRandomCircuitSampling.hpp +0 -62
- mqt_core-2.5.1/include/mqt-core/algorithms/Grover.hpp +0 -31
- mqt_core-2.5.1/include/mqt-core/algorithms/QFT.hpp +0 -22
- mqt_core-2.5.1/include/mqt-core/algorithms/QPE.hpp +0 -24
- mqt_core-2.5.1/include/mqt-core/algorithms/RandomCliffordCircuit.hpp +0 -28
- mqt_core-2.5.1/include/mqt-core/algorithms/WState.hpp +0 -11
- mqt_core-2.5.1/include/mqt-core/dd/Benchmark.hpp +0 -60
- mqt_core-2.5.1/include/mqt-core/dd/ComputeTable.hpp +0 -122
- mqt_core-2.5.1/include/mqt-core/dd/DDpackageConfig.hpp +0 -74
- mqt_core-2.5.1/include/mqt-core/dd/FunctionalityConstruction.hpp +0 -55
- mqt_core-2.5.1/include/mqt-core/dd/GateMatrixDefinitions.hpp +0 -168
- mqt_core-2.5.1/include/mqt-core/dd/Operations.hpp +0 -331
- mqt_core-2.5.1/include/mqt-core/dd/Package.hpp +0 -2804
- mqt_core-2.5.1/include/mqt-core/dd/Package_fwd.hpp +0 -13
- mqt_core-2.5.1/include/mqt-core/dd/Simulation.hpp +0 -61
- mqt_core-2.5.1/include/mqt-core/dd/StochasticNoiseOperationTable.hpp +0 -71
- mqt_core-2.5.1/include/mqt-core/dd/UnaryComputeTable.hpp +0 -80
- mqt_core-2.5.1/include/mqt-core/dd/UniqueTable.hpp +0 -386
- mqt_core-2.5.1/include/mqt-core/ecc/Ecc.hpp +0 -123
- mqt_core-2.5.1/include/mqt-core/ecc/Id.hpp +0 -27
- mqt_core-2.5.1/include/mqt-core/ecc/Q18Surface.hpp +0 -77
- mqt_core-2.5.1/include/mqt-core/ecc/Q3Shor.hpp +0 -34
- mqt_core-2.5.1/include/mqt-core/ecc/Q5Laflamme.hpp +0 -46
- mqt_core-2.5.1/include/mqt-core/ecc/Q7Steane.hpp +0 -44
- mqt_core-2.5.1/include/mqt-core/ecc/Q9Shor.hpp +0 -33
- mqt_core-2.5.1/include/mqt-core/ecc/Q9Surface.hpp +0 -53
- mqt_core-2.5.1/include/mqt-core/na/NAComputation.hpp +0 -91
- mqt_core-2.5.1/include/mqt-core/na/NADefinitions.hpp +0 -134
- mqt_core-2.5.1/include/mqt-core/na/operations/NAGlobalOperation.hpp +0 -38
- mqt_core-2.5.1/include/mqt-core/na/operations/NALocalOperation.hpp +0 -57
- mqt_core-2.5.1/include/mqt-core/na/operations/NAOperation.hpp +0 -22
- mqt_core-2.5.1/include/mqt-core/na/operations/NAShuttlingOperation.hpp +0 -58
- mqt_core-2.5.1/include/mqt-core/operations/ClassicControlledOperation.hpp +0 -176
- mqt_core-2.5.1/include/mqt-core/operations/Control.hpp +0 -87
- mqt_core-2.5.1/include/mqt-core/operations/Expression.hpp +0 -544
- mqt_core-2.5.1/include/mqt-core/operations/OpType.hpp +0 -360
- mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser/StdGates.hpp +0 -148
- mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser/Token.hpp +0 -492
- mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser/passes/CompilerPass.hpp +0 -12
- mqt_core-2.5.1/include/mqt-core/parsers/qasm3_parser/passes/ConstEvalPass.hpp +0 -158
- mqt_core-2.5.1/include/mqt-core/python/pybind11.hpp +0 -12
- mqt_core-2.5.1/include/mqt-core/python/qiskit/QuantumCircuit.hpp +0 -48
- mqt_core-2.5.1/include/mqt-core/zx/Rules.hpp +0 -33
- mqt_core-2.5.1/include/mqt-core/zx/Simplify.hpp +0 -73
- mqt_core-2.5.1/include/mqt-core/zx/ZXDiagram.hpp +0 -166
- mqt_core-2.5.1/noxfile.py +0 -122
- mqt_core-2.5.1/pyproject.toml +0 -289
- mqt_core-2.5.1/src/CMakeLists.txt +0 -238
- mqt_core-2.5.1/src/QuantumComputation.cpp +0 -1135
- mqt_core-2.5.1/src/algorithms/BernsteinVazirani.cpp +0 -134
- mqt_core-2.5.1/src/algorithms/Entanglement.cpp +0 -19
- mqt_core-2.5.1/src/algorithms/GoogleRandomCircuitSampling.cpp +0 -165
- mqt_core-2.5.1/src/algorithms/Grover.cpp +0 -129
- mqt_core-2.5.1/src/algorithms/QFT.cpp +0 -107
- mqt_core-2.5.1/src/algorithms/QPE.cpp +0 -160
- mqt_core-2.5.1/src/algorithms/WState.cpp +0 -31
- mqt_core-2.5.1/src/datastructures/CMakeLists.txt +0 -26
- mqt_core-2.5.1/src/dd/Benchmark.cpp +0 -63
- mqt_core-2.5.1/src/dd/CMakeLists.txt +0 -37
- mqt_core-2.5.1/src/dd/FunctionalityConstruction.cpp +0 -231
- mqt_core-2.5.1/src/dd/MemoryManager.cpp +0 -84
- mqt_core-2.5.1/src/dd/Operations.cpp +0 -151
- mqt_core-2.5.1/src/dd/Simulation.cpp +0 -467
- mqt_core-2.5.1/src/dd/statistics/UniqueTableStatistics.cpp +0 -31
- mqt_core-2.5.1/src/ecc/CMakeLists.txt +0 -30
- mqt_core-2.5.1/src/ecc/Ecc.cpp +0 -45
- mqt_core-2.5.1/src/ecc/Q18Surface.cpp +0 -170
- mqt_core-2.5.1/src/ecc/Q3Shor.cpp +0 -146
- mqt_core-2.5.1/src/ecc/Q5Laflamme.cpp +0 -176
- mqt_core-2.5.1/src/ecc/Q7Steane.cpp +0 -251
- mqt_core-2.5.1/src/ecc/Q9Shor.cpp +0 -213
- mqt_core-2.5.1/src/ecc/Q9Surface.cpp +0 -189
- mqt_core-2.5.1/src/mqt/core/__init__.py +0 -18
- mqt_core-2.5.1/src/mqt/core/_compat/__init__.py +0 -3
- mqt_core-2.5.1/src/mqt/core/_compat/typing.py +0 -23
- mqt_core-2.5.1/src/mqt/core/_core/symbolic.pyi +0 -168
- mqt_core-2.5.1/src/mqt/core/_version.py +0 -16
- mqt_core-2.5.1/src/mqt/core/_version.pyi +0 -4
- mqt_core-2.5.1/src/mqt/core/io.py +0 -50
- mqt_core-2.5.1/src/mqt/core/operations.py +0 -38
- mqt_core-2.5.1/src/mqt/core/plugins/__init__.py +0 -9
- mqt_core-2.5.1/src/mqt/core/symbolic.py +0 -11
- mqt_core-2.5.1/src/na/CMakeLists.txt +0 -26
- mqt_core-2.5.1/src/na/NAComputation.cpp +0 -25
- mqt_core-2.5.1/src/na/operations/NAGlobalOperation.cpp +0 -22
- mqt_core-2.5.1/src/na/operations/NALocalOperation.cpp +0 -31
- mqt_core-2.5.1/src/na/operations/NAShuttlingOperation.cpp +0 -34
- mqt_core-2.5.1/src/operations/ClassicControlledOperation.cpp +0 -52
- mqt_core-2.5.1/src/operations/Expression.cpp +0 -26
- mqt_core-2.5.1/src/parsers/GRCSParser.cpp +0 -50
- mqt_core-2.5.1/src/parsers/QASM3Parser.cpp +0 -864
- mqt_core-2.5.1/src/parsers/QCParser.cpp +0 -323
- mqt_core-2.5.1/src/parsers/RealParser.cpp +0 -274
- mqt_core-2.5.1/src/parsers/TFCParser.cpp +0 -263
- mqt_core-2.5.1/src/parsers/qasm3_parser/Statement.cpp +0 -27
- mqt_core-2.5.1/src/python/CMakeLists.txt +0 -34
- mqt_core-2.5.1/src/python/module.cpp +0 -26
- mqt_core-2.5.1/src/python/operations/register_classic_controlled_operation.cpp +0 -41
- mqt_core-2.5.1/src/python/operations/register_compound_operation.cpp +0 -77
- mqt_core-2.5.1/src/python/operations/register_control.cpp +0 -45
- mqt_core-2.5.1/src/python/qiskit/QuantumCircuit.cpp +0 -497
- mqt_core-2.5.1/src/python/register_operations.cpp +0 -25
- mqt_core-2.5.1/src/python/register_symbolic.cpp +0 -15
- mqt_core-2.5.1/src/python/symbolic/register_variable.cpp +0 -21
- {mqt_core-2.5.1 → mqt_core-3.3.3}/.git_archival.txt +0 -0
- {mqt_core-2.5.1 → mqt_core-3.3.3}/.gitattributes +0 -0
- {mqt_core-2.5.1/src → mqt_core-3.3.3/python}/mqt/core/py.typed +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
FormatStyle: file
|
|
2
2
|
|
|
3
3
|
Checks: |
|
|
4
|
-
boost-*,
|
|
5
4
|
bugprone-*,
|
|
6
5
|
-bugprone-easily-swappable-parameters,
|
|
6
|
+
-bugprone-unchecked-optional-access,
|
|
7
7
|
clang-analyzer-*,
|
|
8
8
|
-clang-analyzer-core.NullDereference,
|
|
9
9
|
clang-diagnostic-*,
|
|
@@ -14,6 +14,7 @@ Checks: |
|
|
|
14
14
|
-cppcoreguidelines-macro-usage,
|
|
15
15
|
-cppcoreguidelines-pro-type-reinterpret-cast,
|
|
16
16
|
-cppcoreguidelines-pro-bounds-constant-array-index,
|
|
17
|
+
-cppcoreguidelines-avoid-do-while,
|
|
17
18
|
google-*,
|
|
18
19
|
-google-readability-todo,
|
|
19
20
|
-google-build-using-namespace,
|
|
@@ -25,6 +26,7 @@ Checks: |
|
|
|
25
26
|
performance-*,
|
|
26
27
|
-performance-no-int-to-ptr,
|
|
27
28
|
portability-*,
|
|
29
|
+
-portability-avoid-pragma-once,
|
|
28
30
|
readability-*,
|
|
29
31
|
-readability-identifier-length,
|
|
30
32
|
-readability-magic-numbers,
|
|
@@ -56,7 +58,7 @@ CheckOptions:
|
|
|
56
58
|
- key: readability-identifier-naming.MemberCase
|
|
57
59
|
value: camelBack
|
|
58
60
|
- key: readability-identifier-naming.MemberIgnoredRegexp
|
|
59
|
-
value: ".*ZX.*|.*SWAP.*|.*CEX.*|.*DD.*|.*EQ
|
|
61
|
+
value: ".*ZX.*|.*SWAP.*|.*CEX.*|.*DD.*|.*EQ.*|.*_"
|
|
60
62
|
- key: readability-identifier-naming.MethodCase
|
|
61
63
|
value: camelBack
|
|
62
64
|
- key: readability-identifier-naming.ParameterCase
|
|
@@ -71,3 +73,5 @@ CheckOptions:
|
|
|
71
73
|
value: CamelCase
|
|
72
74
|
- key: readability-identifier-naming.VariableCase
|
|
73
75
|
value: camelBack
|
|
76
|
+
- key: misc-include-cleaner.IgnoreHeaders
|
|
77
|
+
value: pybind11/detail/.*
|
|
@@ -131,14 +131,13 @@ dmypy.json
|
|
|
131
131
|
cython_debug/
|
|
132
132
|
|
|
133
133
|
# setuptools_scm
|
|
134
|
-
|
|
134
|
+
python/**/_version.py
|
|
135
135
|
|
|
136
136
|
# SKBuild cache dir
|
|
137
137
|
_skbuild/
|
|
138
138
|
|
|
139
139
|
# Any build dirs in the tests
|
|
140
140
|
test/**/build/
|
|
141
|
-
/src/mqt/core/_version.py
|
|
142
141
|
|
|
143
142
|
# Common editor files
|
|
144
143
|
*~
|
|
@@ -171,3 +170,10 @@ Thumbs.db
|
|
|
171
170
|
/docs/**/build
|
|
172
171
|
.vs
|
|
173
172
|
out/build
|
|
173
|
+
|
|
174
|
+
node_modules/
|
|
175
|
+
wheelhouse/
|
|
176
|
+
|
|
177
|
+
# mlir
|
|
178
|
+
|
|
179
|
+
**/.lit
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": {
|
|
3
|
+
"name": "Chair for Design Automation, TUM\nCopyright (c) 2025 Munich Quantum Software Company GmbH",
|
|
4
|
+
"years": [2023, 2025]
|
|
5
|
+
},
|
|
6
|
+
"force_author": true,
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"title": false,
|
|
9
|
+
"include": ["**/*"],
|
|
10
|
+
"style_override_for_suffix": {
|
|
11
|
+
".pyi": "DOCSTRING_STYLE",
|
|
12
|
+
".in": "POUND_STYLE",
|
|
13
|
+
".mlir": "SLASH_STYLE",
|
|
14
|
+
".td": "SLASH_STYLE",
|
|
15
|
+
".yaml": "POUND_STYLE",
|
|
16
|
+
".toml": "POUND_STYLE",
|
|
17
|
+
".proto": "SLASH_STYLE"
|
|
18
|
+
},
|
|
19
|
+
"exclude": [
|
|
20
|
+
"^\\.[^/]+",
|
|
21
|
+
"/\\.[^/]+",
|
|
22
|
+
".*\\.qasm",
|
|
23
|
+
".*\\.ll",
|
|
24
|
+
".*\\.md",
|
|
25
|
+
".*\\.bib",
|
|
26
|
+
".*\\.cff",
|
|
27
|
+
".*\\.css",
|
|
28
|
+
".*\\.json",
|
|
29
|
+
".*\\.html",
|
|
30
|
+
".*\\.tfc",
|
|
31
|
+
".*\\.qc",
|
|
32
|
+
".*\\.real",
|
|
33
|
+
".*\\.tex",
|
|
34
|
+
"uv\\.lock",
|
|
35
|
+
"py\\.typed",
|
|
36
|
+
".*build.*"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -9,18 +9,26 @@
|
|
|
9
9
|
|
|
10
10
|
ci:
|
|
11
11
|
autoupdate_commit_msg: "⬆️🪝 update pre-commit hooks"
|
|
12
|
+
autoupdate_schedule: quarterly
|
|
12
13
|
autofix_commit_msg: "🎨 pre-commit fixes"
|
|
13
14
|
skip: [mypy]
|
|
14
15
|
|
|
15
16
|
repos:
|
|
17
|
+
# Check for merge conflicts
|
|
18
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
19
|
+
rev: v6.0.0
|
|
20
|
+
hooks:
|
|
21
|
+
- id: check-merge-conflict
|
|
22
|
+
args: ["--assume-in-merge"]
|
|
23
|
+
fail_fast: true
|
|
24
|
+
|
|
16
25
|
# Standard hooks
|
|
17
26
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
18
|
-
rev:
|
|
27
|
+
rev: v6.0.0
|
|
19
28
|
hooks:
|
|
20
29
|
- id: check-added-large-files
|
|
21
30
|
- id: check-case-conflict
|
|
22
31
|
- id: check-docstring-first
|
|
23
|
-
- id: check-merge-conflict
|
|
24
32
|
- id: check-symlinks
|
|
25
33
|
- id: check-toml
|
|
26
34
|
- id: check-yaml
|
|
@@ -32,7 +40,7 @@ repos:
|
|
|
32
40
|
|
|
33
41
|
# Clean jupyter notebooks
|
|
34
42
|
- repo: https://github.com/srstevenson/nb-clean
|
|
35
|
-
rev:
|
|
43
|
+
rev: 4.0.1
|
|
36
44
|
hooks:
|
|
37
45
|
- id: nb-clean
|
|
38
46
|
args:
|
|
@@ -43,7 +51,7 @@ repos:
|
|
|
43
51
|
|
|
44
52
|
# Handling unwanted unicode characters
|
|
45
53
|
- repo: https://github.com/sirosen/texthooks
|
|
46
|
-
rev: 0.
|
|
54
|
+
rev: 0.7.1
|
|
47
55
|
hooks:
|
|
48
56
|
- id: fix-ligatures
|
|
49
57
|
- id: fix-smartquotes
|
|
@@ -58,35 +66,40 @@ repos:
|
|
|
58
66
|
|
|
59
67
|
# Python linting using ruff
|
|
60
68
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
61
|
-
rev: v0.4
|
|
69
|
+
rev: v0.14.4
|
|
62
70
|
hooks:
|
|
63
|
-
- id: ruff
|
|
71
|
+
- id: ruff-check
|
|
64
72
|
args: ["--fix", "--show-fixes"]
|
|
65
|
-
types_or: [python, pyi, jupyter]
|
|
66
73
|
- id: ruff-format
|
|
67
|
-
types_or: [python, pyi, jupyter]
|
|
68
74
|
|
|
69
75
|
# Static type checking using mypy
|
|
70
76
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
71
|
-
rev: v1.
|
|
77
|
+
rev: v1.18.2
|
|
72
78
|
hooks:
|
|
73
79
|
- id: mypy
|
|
74
|
-
files: ^(
|
|
80
|
+
files: ^(python/mqt|test/python|noxfile.py)
|
|
75
81
|
args: []
|
|
76
82
|
additional_dependencies:
|
|
77
|
-
-
|
|
83
|
+
- nox
|
|
78
84
|
- pandas-stubs
|
|
85
|
+
- pytest
|
|
79
86
|
|
|
80
87
|
# Also run Black on examples in the documentation
|
|
81
88
|
- repo: https://github.com/adamchainz/blacken-docs
|
|
82
|
-
rev: 1.
|
|
89
|
+
rev: 1.20.0
|
|
83
90
|
hooks:
|
|
84
91
|
- id: blacken-docs
|
|
85
|
-
additional_dependencies: [black==
|
|
92
|
+
additional_dependencies: [black==25.*]
|
|
93
|
+
|
|
94
|
+
# Check for license headers
|
|
95
|
+
- repo: https://github.com/emzeat/mz-lictools
|
|
96
|
+
rev: v2.8.0
|
|
97
|
+
hooks:
|
|
98
|
+
- id: license-tools
|
|
86
99
|
|
|
87
100
|
# Clang-format the C++ part of the code base automatically
|
|
88
101
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
89
|
-
rev:
|
|
102
|
+
rev: v21.1.5
|
|
90
103
|
hooks:
|
|
91
104
|
- id: clang-format
|
|
92
105
|
types_or: [c++, c, cuda]
|
|
@@ -101,15 +114,15 @@ repos:
|
|
|
101
114
|
files: (\.cmake|CMakeLists.txt)(.in)?$
|
|
102
115
|
|
|
103
116
|
# Format configuration files with prettier
|
|
104
|
-
- repo: https://github.com/
|
|
105
|
-
rev: v3.
|
|
117
|
+
- repo: https://github.com/rbubley/mirrors-prettier
|
|
118
|
+
rev: v3.6.2
|
|
106
119
|
hooks:
|
|
107
120
|
- id: prettier
|
|
108
121
|
types_or: [yaml, markdown, html, css, scss, javascript, json]
|
|
109
122
|
|
|
110
123
|
# Check for spelling
|
|
111
124
|
- repo: https://github.com/crate-ci/typos
|
|
112
|
-
rev: v1.
|
|
125
|
+
rev: v1.39.0
|
|
113
126
|
hooks:
|
|
114
127
|
- id: typos
|
|
115
128
|
|
|
@@ -119,19 +132,19 @@ repos:
|
|
|
119
132
|
- id: disallow-caps
|
|
120
133
|
name: Disallow improper capitalization
|
|
121
134
|
language: pygrep
|
|
122
|
-
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest|Mqt|Tum
|
|
135
|
+
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest|Mqt|Tum|MQTopt|MQTref
|
|
123
136
|
exclude: .pre-commit-config.yaml
|
|
124
137
|
|
|
125
138
|
# Check best practices for scientific Python code
|
|
126
139
|
- repo: https://github.com/scientific-python/cookie
|
|
127
|
-
rev:
|
|
140
|
+
rev: 2025.11.07
|
|
128
141
|
hooks:
|
|
129
142
|
- id: sp-repo-review
|
|
130
143
|
additional_dependencies: ["repo-review[cli]"]
|
|
131
144
|
|
|
132
145
|
# Check JSON schemata
|
|
133
146
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
134
|
-
rev: 0.
|
|
147
|
+
rev: 0.34.1
|
|
135
148
|
hooks:
|
|
136
149
|
- id: check-dependabot
|
|
137
150
|
- id: check-github-workflows
|
|
@@ -139,6 +152,24 @@ repos:
|
|
|
139
152
|
|
|
140
153
|
# Check the pyproject.toml file
|
|
141
154
|
- repo: https://github.com/henryiii/validate-pyproject-schema-store
|
|
142
|
-
rev:
|
|
155
|
+
rev: 2025.11.04
|
|
143
156
|
hooks:
|
|
144
157
|
- id: validate-pyproject
|
|
158
|
+
|
|
159
|
+
# Tidy up BibTeX files
|
|
160
|
+
- repo: https://github.com/FlamingTempura/bibtex-tidy
|
|
161
|
+
rev: v1.14.0
|
|
162
|
+
hooks:
|
|
163
|
+
- id: bibtex-tidy
|
|
164
|
+
args:
|
|
165
|
+
[
|
|
166
|
+
"--align=20",
|
|
167
|
+
"--curly",
|
|
168
|
+
"--months",
|
|
169
|
+
"--blank-lines",
|
|
170
|
+
"--sort",
|
|
171
|
+
"--strip-enclosing-braces",
|
|
172
|
+
"--sort-fields",
|
|
173
|
+
"--trailing-commas",
|
|
174
|
+
"--remove-empty-fields",
|
|
175
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
|
|
3
|
+
formats:
|
|
4
|
+
- htmlzip
|
|
5
|
+
|
|
6
|
+
sphinx:
|
|
7
|
+
configuration: docs/conf.py
|
|
8
|
+
|
|
9
|
+
build:
|
|
10
|
+
os: ubuntu-24.04
|
|
11
|
+
tools:
|
|
12
|
+
python: "3.12"
|
|
13
|
+
apt_packages:
|
|
14
|
+
- libmlir-19-dev
|
|
15
|
+
- mlir-19-tools
|
|
16
|
+
- clang-19
|
|
17
|
+
- clang-tools-19
|
|
18
|
+
- graphviz
|
|
19
|
+
- inkscape
|
|
20
|
+
jobs:
|
|
21
|
+
post_checkout:
|
|
22
|
+
# Skip docs build if the commit message contains "skip ci"
|
|
23
|
+
- (git --no-pager log --pretty="tformat:%s -- %b" -1 | grep -viq "skip ci") || exit 183
|
|
24
|
+
# Skip docs build if there are no changes related to docs
|
|
25
|
+
- |
|
|
26
|
+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- bindings/ docs/ include/ mlir/include/ python/ .github/contributing* .github/support* .readthedocs.yaml;
|
|
27
|
+
then
|
|
28
|
+
exit 183;
|
|
29
|
+
fi
|
|
30
|
+
# Unshallow the git clone and fetch tags to get proper version information
|
|
31
|
+
- git fetch --unshallow --tags
|
|
32
|
+
pre_build:
|
|
33
|
+
# Set up uv
|
|
34
|
+
- asdf plugin add uv
|
|
35
|
+
- asdf install uv latest
|
|
36
|
+
- asdf global uv latest
|
|
37
|
+
# Build the MLIR documentation
|
|
38
|
+
- uvx cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_MQT_CORE_MLIR=ON -DMQT_MLIR_MIN_VERSION=19.0 -DMLIR_DIR=/usr/lib/llvm-19/lib/cmake/mlir -DLLVM_DIR=/usr/lib/llvm-19/lib/cmake/llvm
|
|
39
|
+
- uvx cmake --build build --target mlir-doc
|
|
40
|
+
build:
|
|
41
|
+
html:
|
|
42
|
+
- uv run --frozen --no-dev --group docs -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
|
|
43
|
+
htmlzip:
|
|
44
|
+
- uv run --frozen --no-dev --group docs -m sphinx -T -b dirhtml -d docs/_build/doctrees -D language=en docs docs/_build/dirhtml
|
|
45
|
+
- mkdir -p $READTHEDOCS_OUTPUT/htmlzip
|
|
46
|
+
- zip -r $READTHEDOCS_OUTPUT/htmlzip/html.zip docs/_build/dirhtml/*
|