From 5c9eff541abe1791d607827f0ffa1d111efe46d6 Mon Sep 17 00:00:00 2001 From: David Plankensteiner Date: Tue, 14 Aug 2018 20:45:51 +0200 Subject: [PATCH] Rename macros --- src/QuantumOptics.jl | 2 +- src/bases.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/QuantumOptics.jl b/src/QuantumOptics.jl index d2fa87e8..b8fa9c35 100644 --- a/src/QuantumOptics.jl +++ b/src/QuantumOptics.jl @@ -5,7 +5,7 @@ module QuantumOptics using SparseArrays, LinearAlgebra export bases, Basis, GenericBasis, CompositeBasis, basis, - tensor, ⊗, permutesystems, @ismultiplicable, + tensor, ⊗, permutesystems, @samebases, states, StateVector, Bra, Ket, basisstate, norm, dagger, normalize, normalize!, operators, Operator, expect, variance, identityoperator, ptrace, embed, dense, tr, diff --git a/src/bases.jl b/src/bases.jl index 56018c2d..b15b20c4 100644 --- a/src/bases.jl +++ b/src/bases.jl @@ -4,7 +4,7 @@ export Basis, GenericBasis, CompositeBasis, basis, tensor, ⊗, ptrace, permutesystems, IncompatibleBases, samebases, multiplicable, - check_samebases, check_multiplicable, @inbases + check_samebases, check_multiplicable, @samebases import Base: ==, ^ @@ -181,7 +181,7 @@ const BASES_CHECK = Ref(true) Macro to skip multiplicability checks. """ -macro inbases(ex) +macro samebases(ex) return quote BASES_CHECK.x = false local val = $(esc(ex))