Skip to content

Commit

Permalink
Rename macros
Browse files Browse the repository at this point in the history
  • Loading branch information
david-pl committed Aug 14, 2018
1 parent f78cf33 commit 5c9eff5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/QuantumOptics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/bases.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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: ==, ^

Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 5c9eff5

Please sign in to comment.